diff --git a/output_file_example/nginx_openstack/terraform/config.yaml b/output_file_example/nginx_openstack/terraform/config.yaml index fb6f677bb489e5d73ccc2296f766b3ea4b6bfb1e..d0ab1b89457a04ab34ba0e951872da989f9df2de 100644 --- a/output_file_example/nginx_openstack/terraform/config.yaml +++ b/output_file_example/nginx_openstack/terraform/config.yaml @@ -1,5 +1,8 @@ --- -input: ~ +input: + - openstack_username + - openstack_password + - openstack_auth_url output: ~ engine: terraform ... diff --git a/output_file_example/nginx_openstack/terraform/main.tf b/output_file_example/nginx_openstack/terraform/main.tf index a5517c0d31fde72b294c296dd6ce8100e65316c7..4d9b4d34d3fa42ff7c9e05d3f422c37d19b1abcf 100644 --- a/output_file_example/nginx_openstack/terraform/main.tf +++ b/output_file_example/nginx_openstack/terraform/main.tf @@ -10,10 +10,10 @@ required_version = ">= 0.14.0" # Configure the OpenStack Provider provider "openstack" { - user_name = var.username + user_name = var.openstack_username tenant_name = "admin" - password = var.password - auth_url = var.auth_url + password = var.openstack_password + auth_url = var.openstack_auth_url insecure = true } @@ -44,7 +44,7 @@ resource "openstack_compute_instance_v2" "nginx" { # Create ssh keys resource "openstack_compute_keypair_v2" "user_key" { name = "user1" - public_key = var.ssh_key + public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAsRO3dcuZVB0but7Ti9eN+Ti4FvRzQfZT6DugkOnasGSwQkuBUxr0RGHYG2O+C/ul4bN4wcM8VZ4aX9bk9vwkvBkk2uJhy0ZHqIzuwzTOmRPScHWApkxGEANO4QYiYdPYdjmGgAVuKhdqPYOJc5Spkf3n4sYrU89rhC4rLyRs7doYofxpwBVaDfUExPLAtwFb2UGGzC6c0SJzqX4ZFq72NC0zs" } # Create floating ip