avinetworks.avimigrationtools

avi_networks.avimigrationtools

========= An Ansible Role for Avi, includes tools like traffic cutover.

Requirements


  • You need the avisdk Python library. Install it using:
    pip install avisdk --upgrade

Role Dependencies


  • avinetworks.avisdk
    • Install it with this command: ansible-galaxy install -f avinetworks.avisdk

Role Variables


avi_traffic Variables

Variable Required Default Comments
avi_vs_ip_address Yes None VIP (Virtual IP) of the Virtual Service (VS) for traffic
avi_vs_type Yes None Type of Virtual Service
avi_vs_port Yes None Service port for the Virtual Service
avi_vs_name Yes None Name of the Avi Virtual Service
avi_controller Yes None IP address of the Avi controller
avi_con_username Yes None Username for the Avi Controller
avi_con_password Yes None Password for the Avi Controller
avi_con_tenant No admin Name of the Avi controller tenant

netscaler_vs_status Variables

Variable Required Default Comments
ns_username Yes None Username for the Netscaler instance
ns_password Yes None Password for the Netscaler instance
vs_state Yes None State of the Virtual Service to be changed
vs_name Yes None Name of the Virtual Service to update
vs_type Yes None Type of Virtual Service: lbsv or csvs
ns_host Yes None IP address of the Netscaler host

Example Playbook


- connection: local
  hosts: localhost
  roles:
  - avinetworks.avimigrationtools
  tasks:
  - avi_traffic:
      avi_con_password: '{{password}}'
      avi_con_tenant: admin
      avi_con_username: '{{username}}'
      avi_controller: '{{controller}}'
      avi_vs_ip_address: '{{ vs_ip }}'
      avi_vs_name: vs-1
      avi_vs_port: '80'
      avi_vs_type: http
    delay: 5
    name: 'Generate Avi virtual service traffic: vs-1'
    register: result
    retries: 240
    tags:
    - vs-1
    - generate_traffic
    until: result.success == 0

License


Apache 2.0

Author Information


Chaitanya Deshpande
Avi Networks

Installa
ansible-galaxy install avinetworks.avimigrationtools
Licenza
apache-2.0
Download
1.2k
Proprietario