Giter VIP home page Giter VIP logo

ovirt-ansible's Introduction

ovirt-ansible

Collection of ansible snippets for oVirt/RHV

Create hosted-engine deployment hook for Red Hat Solution 4088711

How does this playbook works? It will connect to RHV Manager API and collect information from HostedEngine VM like Data-Center, Cluster and required networks from Cluster, where SHE is running on. All required networks in the selected Cluster will be added to a required_networks list and used to create the fix_network.yml hook.

configure config/rhv-m.yml to setup credentials for RHV-Manager environment

The following configuration example is the minimum required to run this script.

engine_url: "https://rhv-m.example.com/ovirt-engine/api"
engine_user: admin@internal
engine_password: redhat01
engine_cafile: /etc/pki/ovirt-engine/ca.pem

Using the playbook

To run this playbook, a host with ansible >= 2.7 and ovirt-engine-sdk-python >= 4.4.0 and ovirt.ovirt Collection installed is required.

Once available, a simple clone of git repository and execution of the playbook create-fix_network-hook.yml is needed to get create the hook.

$ git clone https://github.com/knumskull/ovirt-ansible.git
$ cd ovirt-ansible
$ ansible-playbook create-fix_network-hook.yml

Example Output of fix_network.yml

This is an example output of running this playbook to be used in correct location described in Red Hat Solution 4088711.

- include_tasks: auth_sso.yml
- name: Wait for the engine to reach a stable condition
  wait_for: timeout=300
- name: fix network
  ovirt_network:
     auth: "{{ ovirt_auth }}"
     name: "{{ item }}"
     data_center: Default
     clusters:
        - name: Default
          required: False
  with_items:
       - storage

Disclaimer

There is no warranty on success by using these scripts. You will use these scripts on your own risk.

ovirt-ansible's People

Contributors

knumskull avatar

Stargazers

 avatar

Watchers

 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.