Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to disable/enable floating IPs #229

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/openstack/platforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ 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
Loading