data "vault_aws_access_credentials" "creds" {
- backend = "${var.vault-name}-path"
- role = "${var.vault-name}-role"
+ backend = "${var.vault-name}-path"
+ role = "${var.vault-name}-role"
}
resource "aws_vpc" "CSITVPC" {
file_path = var.ansible_file_path
force_handlers = true
}
- hosts = ["tg_aws"]
+ hosts = ["tg_aws"]
extra_vars = {
ansible_ssh_pass = var.ansible_provision_pwd
ansible_python_interpreter = var.ansible_python_executable
provisioner "remote-exec" {
on_failure = continue
- inline = ["sudo reboot"]
+ inline = ["sudo reboot"]
}
}
file_path = var.ansible_file_path
force_handlers = true
}
- hosts = ["sut_aws"]
+ hosts = ["sut_aws"]
extra_vars = {
ansible_ssh_pass = var.ansible_provision_pwd
ansible_python_interpreter = var.ansible_python_executable
provisioner "remote-exec" {
on_failure = continue
- inline = ["sudo reboot"]
+ inline = ["sudo reboot"]
}
}
file_path = var.ansible_file_path
force_handlers = true
}
- hosts = ["sut_aws"]
+ hosts = ["sut_aws"]
extra_vars = {
ansible_ssh_pass = var.ansible_provision_pwd
ansible_python_interpreter = var.ansible_python_executable
provisioner "remote-exec" {
on_failure = continue
- inline = ["sudo reboot"]
+ inline = ["sudo reboot"]
}
}
resource "null_resource" "deploy_topology" {
- depends_on = [ aws_instance.tg, aws_instance.dut1, aws_instance.dut2 ]
+ depends_on = [aws_instance.tg, aws_instance.dut1, aws_instance.dut2]
provisioner "ansible" {
plays {
playbook {
file_path = var.ansible_topology_path
}
- hosts = ["local"]
+ hosts = ["local"]
extra_vars = {
ansible_python_interpreter = var.ansible_python_executable
testbed_name = var.testbed_name