Deprecated

Removed in 2.0.0

i

Reason:All VELOS related modules have been moved to a dedicated collection for managing F5OS based devices. | Alternative:Use M(f5networks.f5os.f5os_tenant_wait) instead.

f5networks.f5_bigip.velos_tenant_wait (1.13.0) — module

Wait for a VELOS condition before continuing

| "added in version" 1.1.0 of f5networks.f5_bigip"

Authors: Wojciech Wypior (@wojtek0806)

Install collection

Install with ansible-galaxy collection install f5networks.f5_bigip:==1.13.0


Add to requirements.yml

  collections:
    - name: f5networks.f5_bigip
      version: 1.13.0

Description

Wait for a VELOS tenant to be C(configured), C(provisioned) or C(deployed).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- hosts: all
  collections:
    - f5networks.f5_bigip
  connection: httpapi

  vars:
    ansible_host: "lb.mydomain.com"
    ansible_user: "admin"
    ansible_httpapi_password: "secret"
    ansible_network_os: f5networks.f5_bigip.velos
    ansible_httpapi_use_ssl: yes

  tasks:
    - name: Wait for the specified tenant to be in the configured state.
      velos_tenant_wait:
        name: bigip_tenant1

    - name: Wait a maximum of 300 seconds specified tenant to be in the provisioned state.
      velos_tenant_wait:
        name: bigip_tenant1
        state: provisioned
        timeout: 300

    - name: Wait 30 seconds before verifying the specified tenant to be in the deployed state.
      velos_tenant_wait:
        name: bigip_tenant1
        state: deployed
        delay: 30

Inputs

    
msg:
    description:
    - This overrides the normal error message from a failure to meet the required conditions.
    type: str

name:
    description:
    - Name of the tenant.
    required: true
    type: str

delay:
    default: 0
    description:
    - Number of seconds to wait before starting to poll.
    type: int

sleep:
    default: 1
    description:
    - Number of seconds to sleep between checks.
    type: int

state:
    choices:
    - configured
    - provisioned
    - deployed
    - ssh-ready
    default: configured
    description:
    - The condition for which the system is waiting.
    - Defaults to C(configured), which verifies the specified tenant has been created
      on the partition and is in the configured run-state.
    - C(provisioned) waits for the tenant running-state and status "provisioned".
    - C(deployed) waits for the tenant running-state "deployed", status "running", and
      phase "running".
    - C(ssh-ready) waits for a deployed tenant to be reachable via SSH.
    type: str

timeout:
    default: 600
    description:
    - Maximum number of seconds to wait for the desired state.
    type: int

Outputs

elapsed:
  description: Seconds spent waiting for the requested state.
  example: 600
  returned: always
  type: int
tenant_state:
  contains:
    blades:
      description: Blades allocated to tenant.
      example: 1
      returned: always
      type: int
    cpu-cores:
      description: CPU Cores allocated to the tenant.
      example: '1'
      returned: always
      type: str
    cryptos:
      description: Tenant crypto state. Enabled or Disabled.
      example: disabled
      returned: always
      type: str
    instances:
      description: Tenant instance details.
      example: hash/dictionary of values
      returned: always
      type: dict
    mac-data:
      description: Tenant MAC pool details.
      example: hash/dictionary of values
      returned: always
      type: dict
    memory:
      description: Memory allocated to the tenant.
      example: '4092'
      returned: always
      type: str
    name:
      description: Name of the tenant.
      example: defaultbip
      returned: always
      type: str
    running-state:
      description: Tenant running state.
      example: defaultbip
      returned: always
      type: str
    status:
      description: Tenant Running state.
      example: Running
      returned: always
      type: str
    type:
      description: Tenant type.
      example: BIG-IP
      returned: always
      type: str
  description: State data for the specified tenant.
  returned: always
  type: complex