Skip to content

Commit

Permalink
Add an option to disable/enable floating IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-ioki committed Jan 25, 2024
1 parent 3407427 commit 5ba63a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/openstack/platforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Platform Arguments
description Set description for instance, \
default = 'Molecule test instance'
flavor Set flavor for instance
floating_ip Ensure instance has a public floating IP, default = true
image Set instance image
network Mapping of network settings (optional)
network.name Name of network
Expand Down
1 change: 1 addition & 0 deletions src/molecule_plugins/openstack/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
boot_from_volume: "{{ true if item.volume is defined and item.volume.size else false }}"
terminate_volume: "{{ true if item.volume is defined and item.volume.size else false }}"
volume_size: "{{ item.volume.size if item.volume is defined and item.volume.size else omit }}"
auto_floating_ip: "{{ item.floating_ip | default(true) }}"
network: >-
{{
'molecule-test-' + item.network.name + '-' + uuid
Expand Down

0 comments on commit 5ba63a9

Please sign in to comment.