Giter Site home page Giter Site logo

ovirt-ansible-collection's Introduction

Build Status Build Status

oVirt ansible collection

The ovirt.ovirt manages all ansible modules of oVirt.

The pypi installation is no longer supported if you want to install all dependencies do it manually or install the collection from RPM and it will be done automatically.

Note

Please note that when installing this collection from Ansible Galaxy you are instructed to run following command:

$ ansible-galaxy collection install ovirt.ovirt

Requirements

  • Ansible version 2.9.11 or higher
  • Python SDK version 4.4 or higher
  • Python netaddr library on the ansible controller node

Modules documentation

https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/index.html

Content of the collection

  • modules:
    • ovirt_* - Modules to manage objects in oVirt Engine
    • ovirt_*_info - Modules to gather information about objects in oVirt Engine
  • roles:
    • cluster_upgrade
    • engine_setup
    • hosted_engine_setup
    • image_template
    • infra
    • manageiq
    • repositories
    • shutdown_env
    • vm_infra
  • inventory plugin

Example Playbook

---
- name: oVirt ansible collection
  hosts: localhost
  connection: local
  vars_files:
    # Contains encrypted `engine_password` varibale using ansible-vault
    - passwords.yml
  tasks:
    - block:
        # The use of ovirt.ovirt before ovirt_auth is to check if the collection is correctly loaded
        - name: Obtain SSO token with using username/password credentials
          ovirt.ovirt.ovirt_auth:
            url: https://ovirt.example.com/ovirt-engine/api
            username: admin@internal
            ca_file: ca.pem
            password: "{{ ovirt_password }}"

        # Previous task generated I(ovirt_auth) fact, which you can later use
        # in different modules as follows:
        - ovirt_vm:
            auth: "{{ ovirt_auth }}"
            state: absent
            name: myvm

      always:
        - name: Always revoke the SSO token
          ovirt_auth:
            state: absent
            ovirt_auth: "{{ ovirt_auth }}"
  collections:
    - ovirt.ovirt

Licenses

  • Apache License 2.0
  • GNU General Public License 3.0

ovirt-ansible-collection's People

Contributors

mnecas avatar arachmani avatar snecklifter avatar alancoding avatar ahadas avatar mwperina avatar klettit avatar jekader avatar hiyokotaisa avatar bverschueren avatar s-hertel avatar seansackowitz avatar ganto avatar nijinashok avatar kobihk avatar kedark3 avatar darinj avatar briantward avatar bmillemathias 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.