Skip to content

Commit

Permalink
adding in workstation_count due to hashicorp/terraform#12570
Browse files Browse the repository at this point in the history
  • Loading branch information
devoptimist committed May 19, 2019
1 parent 68dda20 commit 6d72ed1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module connects via winrm and installs some chef related tools.
```hcl
module "workstation_names" {
source = "devoptimist/workstation-tools/windows"
version = "0.0.2"
version = "0.0.3"
workstation_use_chocolatey = true
workstation_ips = ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
winrm_password = "MyP@ssW0rd!"
Expand Down
4 changes: 4 additions & 0 deletions inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ variable "chef_workstation_dl_url" {
default = "https://packages.chef.io/files/stable/chef-workstation/0.2.53/windows/2016/chef-workstation-0.2.53-1-x64.msi"
}

variable "workstation_count" {
default = 1
}

variable "workstation_ips" {
default = []
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data "template_file" "install_ws" {
}

resource "null_resource" "workstation_base_install" {
count = "${length(var.workstation_ips)}"
count = "${var.workstation_count}"

triggers {
template = "${data.template_file.install_ws.rendered}"
Expand Down

0 comments on commit 6d72ed1

Please sign in to comment.