diff --git a/doc/openstack/platforms.rst b/doc/openstack/platforms.rst index ae2b0bad..2d566102 100644 --- a/doc/openstack/platforms.rst +++ b/doc/openstack/platforms.rst @@ -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 diff --git a/src/molecule_plugins/openstack/playbooks/create.yml b/src/molecule_plugins/openstack/playbooks/create.yml index d9596952..6827ddb2 100644 --- a/src/molecule_plugins/openstack/playbooks/create.yml +++ b/src/molecule_plugins/openstack/playbooks/create.yml @@ -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