wojtek0806 / wojtek0806.f5os / 0.3.0 / module / f5os_tenant Manage F5OS tenants | "added in version" 1.0.0 of wojtek0806.f5os" Authors: Wojciech Wypior (@wojtek0806)wojtek0806.f5os.f5os_tenant (0.3.0) — module
Install with ansible-galaxy collection install wojtek0806.f5os:==0.3.0
collections: - name: wojtek0806.f5os version: 0.3.0
Manage F5OS tenants on VELOS Partitions and rSeries platforms.
- hosts: all collections: - f5networks.f5os connection: httpapi vars: ansible_host: "lb.mydomain.com" ansible_user: "admin" ansible_httpapi_password: "secret" ansible_network_os: f5networks.f5os.f5os ansible_httpapi_use_ssl: yes tasks: - name: Create tenant 'foo' f5os_tenant: name: foo image_name: BIGIP-bigip14.1.x-miro-14.1.2.3-0.0.182.ALL-VELOS.qcow2.zip nodes: - 1 mgmt_ip: 10.144.3.17 mgmt_prefix: 19 mgmt_gateway: 10.146.127.254 vlans: [245] cpu_cores: 2 memory: 4096 cryptos: disabled running_state: configured - name: Deploy tenant 'foo' f5os_tenant: name: foo running_state: deployed - name: Delete tenant 'foo' f5os_tenant: name: foo state: absent
name: description: - Name of the tenant. - The first character must be a letter. - Only lowercase alphanumeric characters are allowed. - No special or extended characters are allowed except for hyphens. - The name cannot exceed 50 characters. required: true type: str nodes: description: - List of integers. Specifies on which blade C(nodes) the tenants are deployed. - Required for create operations. - For single-blade platforms like rSeries, provide only the value of 1. elements: int type: list state: choices: - present - absent default: present description: - The tenant state. If C(absent), deletes the tenant if it exists. - If C(present), the tenant is created and enabled. type: str vlans: description: - The existing VLAN IDs in the chassis partition added to the tenant. - The order of these VLANs is ignored. - This module orders the VLANs automatically. If you deliberately re-order the VLANs in subsequent tasks, then this module will B(not) register a change. - Required for create operations. elements: int type: list memory: description: - The amount of memory (in KB) provided to the tenant. - The configured value of memory must be greater than or equal to the integer value obtained from the formula, '(3.5 * 1024 * cpu_cores) + 512'. - Required for create operations. type: int cryptos: choices: - enabled - disabled description: - Whether crypto and compression hardware offload is enabled on the tenant. - F5 recommends enabling, otherwise, crypto and compression can be processed in CPU. type: str mgmt_ip: description: - IP address used to connect to the deployed tenant. - Required for create operations. type: str cpu_cores: choices: - 1 - 2 - 4 - 6 - 8 - 10 - 12 - 14 - 16 - 18 - 20 - 22 description: - The number of vCPUs added to the tenant. - Required for create operations. type: int image_name: description: - Name of the tenant image to use. Must be present on the chassis partition. - Required for create operations. type: str mgmt_prefix: description: - Tenant management CIDR prefix. type: int mgmt_gateway: description: - Tenant management gateway. type: str running_state: choices: - configured - provisioned - deployed description: - Desired C(running_state) of the tenant. type: str
cpu_cores: description: The number of vCPUs added to the tenant. returned: changed sample: 4 type: int cryptos: description: Specify if crypto and compression hardware offload is enabled for the tenant. returned: changed sample: enabled type: str image_name: description: Name of the tenant image. returned: changed sample: BIGIP-bigip.TMOS-VEL.qcow2.zip type: str memory: description: The amount of memory in KB provided to the tenant. returned: changed sample: 4096 type: int mgmt_gateway: description: Tenant management gateway. returned: changed sample: 192.168.1.254 type: str mgmt_ip: description: IP address used to connect to the deployed tenant. returned: changed sample: 192.168.1.1 type: str mgmt_prefix: description: Tenant management CIDR prefix. returned: changed sample: 24 type: int nodes: description: Specify on which blades the tenant is configured. returned: changed sample: - 1 type: list running_state: description: The running_state of the tenant. returned: changed sample: provisioned type: str vlans: description: Existing VLAN IDs in the chassis partition added to the tenant. returned: changed sample: - 444 - 333 type: list