From 5b13ab4a83facb01db60853df264357c370761a2 Mon Sep 17 00:00:00 2001 From: Debora Benedetto <debora.benedetto@hpe.com> Date: Thu, 5 May 2022 09:48:47 +0200 Subject: [PATCH] Add config.yaml files for IEM in the example output --- output_file_example/nginx_openstack/terraform/config.yaml | 5 ++++- output_file_example/nginx_openstack/terraform/main.tf | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/output_file_example/nginx_openstack/terraform/config.yaml b/output_file_example/nginx_openstack/terraform/config.yaml index fb6f677..d0ab1b8 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 a5517c0..4d9b4d3 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 -- GitLab