Coder Social home page Coder Social logo

ashmitha7 / ovirt-ansible-cluster-upgrade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ovirt/ovirt-ansible-cluster-upgrade

0.0 1.0 0.0 34 KB

Ansible role to upgrade hosts in oVirt cluster

License: Apache License 2.0

Shell 20.19% Python 79.81%

ovirt-ansible-cluster-upgrade's Introduction

oVirt Cluster Upgrade

The oVirt.cluster-upgrade role iterates through all the hosts in a cluster and upgrades them.

Requirements

  • Ansible version 2.4 or higher
  • Python SDK version 4 or higher

Role Variables

Name Default value
cluster_name Default Name of the cluster to be upgraded.
stopped_vms UNDEF List of virtual machines to stop before upgrading.
stop_non_migratable_vms
alias: stop_pinned_to_host_vms
false Specify whether to stop virtual machines pinned to the host being upgraded. If true, the pinned non-migratable virtual machines will be stopped and host will be upgraded, otherwise the host will be skipped.
upgrade_timeout 1200 Timeout in seconds to wait for host to be upgraded.
host_statuses [UP] List of host statuses. If a host is in any of the specified statuses then it will be upgraded.
host_names [*] List of host names to be upgraded.
check_upgrade false If true, run check_for_upgrade action on all hosts before executing upgrade on them. If false, run upgrade only for hosts with available upgrades and ignore all other hosts.

Dependencies

No.

Example Playbook

---
- name: oVirt infra
  hosts: localhost
  connection: local
  gather_facts: false

  vars:
    engine_url: https://ovirt-engine.example.com/ovirt-engine/api
    engine_user: admin@internal
    engine_password: 123456
    engine_cafile: /etc/pki/ovirt-engine/ca.pem

    cluster_name: production
    stopped_vms:
      - openshift-master-0
      - openshift-node-0
      - openshift-node-image

  roles:
    - oVirt.cluster-upgrade

asciicast

License

Apache License 2.0

ovirt-ansible-cluster-upgrade's People

Contributors

machacekondra avatar

Watchers

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