Documentation

quantum_floating_ip - Add/Remove floating IP from an instance

DEPRECATED

Deprecated in 2.0. Use os_floating_ip instead.

Synopsis

  • Add or Remove a floating IP to an instance

Requirements (on host that executes module)

  • python >= 2.6
  • python-novaclient
  • python-neutronclient or python-quantumclient
  • python-keystoneclient

Options

parameter required default choices comments
auth_url
no http://127.0.0.1:35357/v2.0/
The keystone url for authentication
instance_name
yes None
The name of the instance to which the IP address should be assigned
internal_network_name
(added in 1.5)
no None
The name of the network of the port to associate with the floating ip. Necessary when VM multiple networks.
login_password
yes yes
Password of login user
login_tenant_name
yes yes
The tenant name of the login user
login_username
yes admin
login username to authenticate to keystone
network_name
yes None
Name of the network from which IP has to be assigned to VM. Please make sure the network is an external network
region_name
no None
Name of the region
state
no present
  • present
  • absent
Indicate desired state of the resource

Examples

- name: Assign a floating ip to the instance from an external network
  quantum_floating_ip:
    state: present
    login_username: admin
    login_password: admin
    login_tenant_name: admin
    network_name: external_network
    instance_name: vm1
    internal_network_name: internal_network

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.