Skip to content
Snippets Groups Projects
Commit 1369a6fa authored by debora.benedetto@hpe.com's avatar debora.benedetto@hpe.com
Browse files

update output example files

parent 9284824e
No related branches found
No related tags found
No related merge requests found
--- ---
input: input:
- instance_server_public_key - instance_server_public_key
- instance_ip
output: [] output: []
engine: ansible engine: ansible
... ...
--- ---
- hosts: 16.0.0.1 - hosts: "{{instance_server_public_key}}"
gather_facts: no gather_facts: no
become: yes become: yes
vars: vars:
......
...@@ -4,4 +4,5 @@ input: [] ...@@ -4,4 +4,5 @@ input: []
output: output:
- instance_server_public_key - instance_server_public_key
- instance_server_private_key - instance_server_private_key
- instance_ip
... ...
...@@ -29,8 +29,8 @@ data "openstack_networking_secgroup_v2" "default" { ...@@ -29,8 +29,8 @@ data "openstack_networking_secgroup_v2" "default" {
# Create virtual machine # Create virtual machine
resource "openstack_compute_instance_v2" "nginx" { resource "openstack_compute_instance_v2" "nginx" {
name = "nginx-host" name = "nginx-host"
image_name = "ubuntu-18.04" image_name = "Ubuntu-Focal-20.04-Daily-2022-04-19"
flavor_name = "m1.tiny" flavor_name = "ubuntu"
key_pair = openstack_compute_keypair_v2.user_key.name key_pair = openstack_compute_keypair_v2.user_key.name
network { network {
port = openstack_networking_port_v2.nginx.id port = openstack_networking_port_v2.nginx.id
......
...@@ -5,3 +5,7 @@ output "instance_server_public_key" { ...@@ -5,3 +5,7 @@ output "instance_server_public_key" {
output "instance_server_private_key" { output "instance_server_private_key" {
value = openstack_compute_keypair_v2.user_key.private_key value = openstack_compute_keypair_v2.user_key.private_key
} }
output "instance_ip" {
value = openstack_compute_floatingip_associate_v2.nginx.floating_ip
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment