ANSIBLE.QUANTUM_NETWORK(3)

NAME
quantum_network - Creates/Removes networks from OpenStack

DESCRIPTION

Add or Remove network from OpenStack.

OPTIONS

admin_state_up
    Whether the state should be marked as up or down (default: yes

auth_url
    The keystone url for authentication (default: http://127.0.0.1:35357/v2.0/)

login_password
    Password of login user(required) (default: yes)

login_tenant_name
    The tenant name of the login user(required) (default: yes)

login_username
    login username to authenticate to keystone(required) (default: admin)

name
    Name to be assigned to the nework(required) (default: None)

provider_network_type
    The type of the network to be created, gre, vlan, local. Available types depend on the plugin. The Quantum service decides if not specified. (default: None)

provider_physical_network
    The physical network which would realize the virtual network for flat and vlan networks. (default: None)

provider_segmentation_id
    The id that has to be assigned to the network, in case of vlan networks that would be vlan id and for gre the tunnel id (default: None)

region_name
    Name of the region (default: None)

router_external
    If 'yes', specifies that the virtual network is a external network (public).

shared
    Whether this network is shared or not

state
    Indicate desired state of the resource Choices: present,absent. (default: present)

tenant_name
    The name of the tenant for whom the network is created (default: None)."
    # Create a GRE backed Quantum network with tunnel id 1 for tenant1
    - quantum_network: name=t1network tenant_name=tenant1 state=present
                       provider_network_type=gre provider_segmentation_id=1
                       login_username=admin login_password=admin login_tenant_name=admin
    # Create an external network
    - quantum_network: name=external_network state=present
                       provider_network_type=local router_external=yes
                       login_username=admin login_password=admin login_tenant_name=admin

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#quantum-network