GithubHelp home page GithubHelp logo

ansible-role-openshift-vm's Introduction

openshift_vm

Ansible Role to automate common kubevirt tasks

Requirements

Ansible 2.9 or higher

Red Hat OpenShift Container Platform or equivalent

Collections:

  • kubernetes.core
  • redhat.openshift
  • community.general

Variables

Currently the following variables are supported:

openshift_vm_action

What action to perform, currently the following actions are supported:

create Create a virtual machine.

delete Delete a virtual machine.

start Start a virtual machine.

stop Stop a virtual machine.

start_all Starts all virtual machines in the cluster, can be used together with openshift_vm_namespace to only start all virtual machines in a namespace.

stop_all Stops all virtual machines in the cluster, can be used together with openshift_vm_namespace to only stop all virtual machines in a namespace.

openshift_vm_action: create

openshift_vm_name

Name of the virtual machine that should be created/deleted/modified.

openshift_vm_name: 'test-vm'

openshift_vm_namespace

Name of the namespace/project that we should operate in.

openshift_vm_namespace: 'test-project'

Dependencies

None

Example Playbooks

Start action examples

Start a virtual machine:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: start
    openshift_vm_name: <vm_name>
    openshift_vm_namespace: <project_name>

Start all virtual machines in a namespace:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: start_all
    openshift_vm_namespace: <project_name>

Start all virtual machines in the cluster:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: start_all

Stop action examples

Stop a virtual machine:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: stop
    openshift_vm_name: <vm_name>
    openshift_vm_namespace: <project_name>

Stop all virtual machines in a namespace:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: stop_all
    openshift_vm_namespace: <project_name>

Stop all virtual machines in the cluster:

- name: "Include role openshift_vm"
  include_role:
    name: openshift_vm
  vars:
    openshift_vm_action: stop_all

License

GPLv2+

Author Information

Peter Gustafsson [email protected]

ansible-role-openshift-vm's People

Contributors

pgustafs avatar

Watchers

James Cloos avatar  avatar

ansible-role-openshift-vm's Issues

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.