Coder Social home page Coder Social logo

md-ansible's Introduction

Virtual Service Migration

This Ansible playbook can be used in scenarios where virtual services need to be migrated from one service engine group to another, as long as they belong to the same Avi cloud.

Getting Started

This automation is tested using specific versions of Ansible and makes use of libraries which are needed for playbooks to execute successfully. When developing your own automation, it is highly encouraged to make use of Python's virtual environments to avoid conflicts with other version of packages which may already be installed.

git clone https://github.com/joeycoakleyavi/MD-Ansible.git
cd MD-Ansible
python3 -m venv env
source env/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
ansible-galaxy install avinetworks.avisdk

Once the environment is prepared, edit the hosts.yml file to include the address of your controller cluster.

[all]
ctl ansible_host=<ip or fqdn of controller>

Then, edit vars.yml to suit your environment

avi_credentials:
  controller: "{{ ansible_host }}"                          <--- Do not edit
  username: admin                                           <--- Controller Username
  password:                                                 <--- Controller Password
  api_version: 20.1.4                                       <--- Your controller version
  tenant: admin                                             <--- Which tenant does the VIP belong to?
ansible_python_interpreter: "{{ ansible_playbook_python }}" <--- Do not edit

cur_seg: My-SEG-2                                           <--- Existing Service Engine Group
new_seg: Default-Group                                      <--- New Service Engine Group
cloud_name: AWS                                             <--- Cloud Name 

vsvip_migration_list:                                       <--- Add which IPs should be migrated as separate entries
  - 10.20.200.100
  - 10.20.200.194

Once complete, you can run the Ansible playbook

ansible-playbook main.yml

Compatibility

This automation has been tested on Avi Vantage 20.1.4 & 18.2.8

md-ansible's People

Contributors

joeycoakleyavi avatar

Stargazers

Sean Larimore avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.