ngine_io.cloudstack.cs_traffic_type module – Manages traffic types on CloudStack Physical Networks
Note
This module is part of the ngine_io.cloudstack collection (version 2.5.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ngine_io.cloudstack
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: ngine_io.cloudstack.cs_traffic_type
.
New in ngine_io.cloudstack 0.1.0
Synopsis
Add, remove, update Traffic Types associated with CloudStack Physical Networks.
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.6
cs >= 0.9.0
Parameters
Parameter |
Comments |
---|---|
HTTP method used to query the API endpoint. If not given, the Choices:
|
|
API key of the CloudStack API. If not given, the |
|
Secret key of the CloudStack API. If not set, the |
|
HTTP timeout in seconds. If not given, the Default: |
|
URL of the CloudStack API e.g. https://cloud.example.com/client/api. If not given, the |
|
Verify CA authority cert file. If not given, the |
|
The network name label of the physical device dedicated to this traffic on a HyperV host. |
|
Use if the physical network has multiple isolation types and traffic type is public. Choices:
|
|
The network name label of the physical device dedicated to this traffic on a KVM host. |
|
The network name of the physical device dedicated to this traffic on an OVM3 host. |
|
the name of the Physical Network |
|
Poll async jobs until job has finished. Choices:
|
|
State of the traffic type Choices:
|
|
the trafficType to be added to the physical network. Choices:
|
|
If If not given, the This should only be used on personally controlled sites using self-signed certificates. Choices:
|
|
The VLAN id to be used for Management traffic by VMware host. |
|
The network name label of the physical device dedicated to this traffic on a VMware host. |
|
The network name label of the physical device dedicated to this traffic on a XenServer host. |
|
Name of the zone with the physical network. |
Notes
Note
A detailed guide about cloudstack modules can be found in the CloudStack Cloud Guide.
This module supports check mode.
Examples
- name: add a traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Guest
zone: test-zone
- name: update traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Guest
kvm_networklabel: cloudbr0
zone: test-zone
- name: remove traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Public
state: absent
zone: test-zone
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The network name label of the physical device dedicated to this traffic on a HyperV host Returned: success Sample: |
|
ID of the network provider Returned: success Sample: |
|
The network name label of the physical device dedicated to this traffic on a KVM host Returned: success Sample: |
|
The network name of the physical device dedicated to this traffic on an OVM3 host Returned: success Sample: |
|
the physical network this belongs to Returned: success Sample: |
|
the trafficType that was added to the physical network Returned: success Sample: |
|
The network name label of the physical device dedicated to this traffic on a VMware host Returned: success Sample: |
|
The network name label of the physical device dedicated to this traffic on a XenServer host Returned: success Sample: |
|
Name of zone the physical network is in. Returned: success Sample: |