Skip to content

Commit

Permalink
add host var
Browse files Browse the repository at this point in the history
  • Loading branch information
netmemo committed Jul 29, 2021
1 parent fce84b3 commit 3955a70
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.terraform
.terraform.lock.hcl
perso.auto.tfvars
plan.out
terraform.tfstate
terraform.tfstate.backup
2 changes: 1 addition & 1 deletion nsxt-tf-rm-dfw/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}

provider "nsxt" {
host = "192.168.0.7"
host = var.host
username = "admin"
password = var.password
allow_unverified_ssl = true
Expand Down
4 changes: 4 additions & 0 deletions nsxt-tf-rm-dfw/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
variable "host" {
type = string
}

variable "password" {
}

Expand Down
2 changes: 1 addition & 1 deletion nsxt-tf-rm-grpsvc/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}

provider "nsxt" {
host = "192.168.0.7"
host = var.host
username = "admin"
password = var.password
allow_unverified_ssl = true
Expand Down
4 changes: 4 additions & 0 deletions nsxt-tf-rm-grpsvc/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
variable "host" {
type = string
}

variable "password" {
}

Expand Down

0 comments on commit 3955a70

Please sign in to comment.