ngine_io / ngine_io.cloudstack / 2.3.0 / module / cs_network_offering Manages network offerings on Apache CloudStack based clouds. | "added in version" 0.1.0 of ngine_io.cloudstack" Authors: David Passante (@dpassante)ngine_io.cloudstack.cs_network_offering (2.3.0) — module
Install with ansible-galaxy collection install ngine_io.cloudstack:==2.3.0
collections: - name: ngine_io.cloudstack version: 2.3.0
Create, update, enable, disable and remove network offerings.
- name: Create a network offering and enable it ngine_io.cloudstack.cs_network_offering: name: my_network_offering display_text: network offering description state: enabled guest_ip_type: Isolated supported_services: [ Dns, PortForwarding, Dhcp, SourceNat, UserData, Firewall, StaticNat, Vpn, Lb ] service_providers: - { service: 'dns', provider: 'virtualrouter' } - { service: 'dhcp', provider: 'virtualrouter' }
- name: Remove a network offering ngine_io.cloudstack.cs_network_offering: name: my_network_offering state: absent
name: description: - The name of the network offering. required: true type: str tags: aliases: - tag description: - List of tags. Tags are a list of strings. - 'To delete all tags, set an empty list e.g. I(tags: []).' elements: str type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack state: choices: - enabled - present - disabled - absent default: present description: - State of the network offering. type: str zones: aliases: - zone description: - List of zones the network offering is related to. - Use C(all) for all zones offering. elements: str type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. required: true type: str api_url: description: - URL of the CloudStack API e.g. https://cloud.example.com/client/api. - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered. required: true type: str details: description: - Network offering details in key/value pairs. - with service provider as a value elements: dict type: list domains: aliases: - domain description: - List of domains the network offering is related to. - Use C(public) for public offerings. elements: str type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack for_vpc: description: - Whether the offering is meant to be used for VPC or not. type: bool api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. required: true type: str persistent: description: - True if network offering supports persistent networks - defaulted to false if not specified type: bool api_timeout: default: 10 description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. type: int availability: description: - The availability of network offering. Default value is Optional type: str display_text: description: - Display text of the network offerings. type: str network_rate: description: - Data transfer rate in megabits per second allowed. type: int specify_vlan: description: - Whether the network offering supports vlans or not. type: bool traffic_type: default: Guest description: - The traffic type for the network offering. type: str conserve_mode: description: - Whether the network offering has IP conserve mode enabled. type: bool guest_ip_type: choices: - Shared - Isolated description: - Guest type of the network offering. type: str api_http_method: choices: - get - post default: get description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. type: str max_connections: description: - Maximum number of concurrent connections supported by the network offering. type: int service_offering: description: - The service offering name or ID used by virtual router provider. type: str keepalive_enabled: description: - If true keepalive will be turned on in the loadbalancer. - At the time of writing this has only an effect on haproxy. - the mode http and httpclose options are unset in the haproxy conf file. type: bool service_providers: aliases: - service_provider description: - Provider to service mapping. - If not specified, the provider for the service will be mapped to the default provider on the physical network. elements: dict type: list specify_ip_ranges: description: - Whether the network offering supports specifying IP ranges. - Defaulted to C(no) by the API if not specified. type: bool supported_services: aliases: - supported_service choices: - Dns - PortForwarding - Dhcp - SourceNat - UserData - Firewall - StaticNat - Vpn - Lb description: - Services supported by the network offering. - A list of one or more items from the choice list. elements: str type: list api_verify_ssl_cert: description: - Verify CA authority cert file. - If not given, the C(CLOUDSTACK_VERIFY) env variable is considered. type: str service_capabilities: aliases: - service_capability description: - Desired service capabilities as part of network offering. elements: str type: list egress_default_policy: choices: - allow - deny description: - Whether the default egress policy is allow or to deny. type: str
availability: description: The availability of network offering. returned: success sample: Optional type: str display_text: description: The display text of the network offering. returned: success sample: My network offering type: str domains: description: List of domains associated with the network offering. returned: success sample: - public type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack egress_default_policy: description: Default egress policy. returned: success sample: allow type: str for_vpc: description: Whether the offering is meant to be used for VPC or not. returned: success sample: false type: bool guest_ip_type: description: Guest type of the network offering. returned: success sample: Isolated type: str id: description: UUID of the network offering. returned: success sample: a6f7a5fc-43f8-11e5-a151-feff819cdc9f type: str is_default: description: Whether network offering is the default offering or not. returned: success sample: false type: bool is_persistent: description: Whether persistent networks are supported or not. returned: success sample: false type: bool max_connections: description: The maximum number of concurrent connections to be handled by LB. returned: success sample: 300 type: int name: description: The name of the network offering. returned: success sample: MyCustomNetworkOffering type: str network_rate: description: The network traffic transfer ate in Mbit/s. returned: success sample: 200 type: int service_offering_id: description: The service offering ID. returned: success sample: c5f7a5fc-43f8-11e5-a151-feff819cdc9f type: str state: description: The state of the network offering. returned: success sample: Enabled type: str tags: description: List of tags associated with the network offering. returned: success sample: - tag1 - tag2 type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack traffic_type: description: The traffic type. returned: success sample: Guest type: str zones: description: List of zones associated with the network offering. returned: success sample: - all type: list version_added: 2.2.0 version_added_collection: ngine_io.cloudstack