wojtek0806.f5os.velos_partition_wait (0.3.0) — module

Wait for a VELOS chassis partition to match a condition before continuing

| "added in version" 1.0.0 of wojtek0806.f5os"

Authors: Ravinder Reddy (@chinthalapalli)

Install collection

Install with ansible-galaxy collection install wojtek0806.f5os:==0.3.0


Add to requirements.yml

  collections:
    - name: wojtek0806.f5os
      version: 0.3.0

Description

Wait for VELOS chassis partition to match a condition before continuing.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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: Wait for the specified partition to be in the running state.
      velos_partition_wait:
        name: partition1
    - name: Wait a maximum of 300 seconds specified partition to be in the api_available state.
      velos_partition_wait:
        name: partition1
        state: ssh-ready
        timeout: 300
    - name: Wait 30 seconds before verifying the specified partition to be in the running state.
      velos_partition_wait:
        name: partition1
        state: running
        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 chassis partition.
    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:
    - running
    - ssh-ready
    default: running
    description:
    - The condition for which the system is waiting.
    - Defaults to C(running), which verifies the specified chassis partition has been
      created with a status of '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
partition_state:
  contains:
    controllers:
      description: State of controllers
      example: ' { "controllers": { "controller": [ { "controller": 1, "partition-id":
        2, "partition-status": "running-active" }, { "controller": 2, "partition-id":
        2, "partition-status": "running-standby" } ] }'
      returned: always
      type: str
  description: State data for the specified partition.
  returned: always
  type: complex