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
Branches
No related tags found
No related merge requests found
---
input:
- instance_server_public_key
- instance_ip
output: []
engine: ansible
...
---
- hosts: 16.0.0.1
- hosts: "{{instance_server_public_key}}"
gather_facts: no
become: yes
vars:
......
......@@ -4,4 +4,5 @@ input: []
output:
- instance_server_public_key
- instance_server_private_key
- instance_ip
...
......@@ -29,8 +29,8 @@ data "openstack_networking_secgroup_v2" "default" {
# Create virtual machine
resource "openstack_compute_instance_v2" "nginx" {
name = "nginx-host"
image_name = "ubuntu-18.04"
flavor_name = "m1.tiny"
image_name = "Ubuntu-Focal-20.04-Daily-2022-04-19"
flavor_name = "ubuntu"
key_pair = openstack_compute_keypair_v2.user_key.name
network {
port = openstack_networking_port_v2.nginx.id
......
......@@ -4,4 +4,8 @@ output "instance_server_public_key" {
output "instance_server_private_key" {
value = openstack_compute_keypair_v2.user_key.private_key
}
\ No newline at end of file
}
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