Coder Social home page Coder Social logo

controller-upgrade's Introduction

Ansible Playbook for Automating Controller Upgrades

Summary

This playbook and collection of roles allow an administrator to specify either a controller base image or patch to upgrade. It will determine whether the image requires an upload to the controller, and will upload if necessary. From there, it will determine if the image is a patch or system image, then perform the appropriate operation.

Please define variables in the vars.yml file before use. The ansible.cfg currently uses ./hosts.yml for the inventory. Either edit this file with your controller information, or use your own inventory file. Multiple clusters are supported so long as they are performing the same upgrade and are on the same API version.

Getting Started

git clone [email protected]:joeycoakleyavi/controller-upgrade.git
cd controller-upgrade
python3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
ansible-galaxy install avinetworks.avisdk

Edit hosts.yml to include which controllers should be upgraded. The playbook currently points to **ALL** hosts in this file. Scope this down if required.

Note: Only include the leader node of a given cluster in hosts.yml. Avi Controllers will handle distributing the image and performing upgrades to all member controllers of the cluster.

For Non-GSLB Avi Clusters:
ansible-playbook upgrade_non_gslb.yml

For GSLB-Enabled Clusters:
ansible-playbook upgrade_gslb.yml

controller-upgrade's People

Contributors

slarimore02 avatar joeycoakleyavi avatar

Watchers

James Cloos avatar  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.