Giter Club home page Giter Club logo

ansible-kcli-modules's Introduction

ansible-kcli-modules

Provides access to the latest release of the kcli modules.

Include this role in a playbook, and any other plays, roles, and includes will have access to the modules.

The modules are found in the library folder

Requirements

  • Ansible >= 2.9, it is recommended to download the latest version of Ansible.
  • kcli

Installation

Use the Ansible Galaxy client to install the latest version of the collection:

$ ansible-galaxy collection install karmab.kcli

or using requirements.yml:

collections:
  - name: karmab.kcli

How to use

The following modules are available

  • kcli_vm
  • kcli_info
  • kcli_plan
  • kcli_product
  • kcli_cluster

For all of them, apart from mandatory parameters, you can provide a parameters dict with all your parameters

kcli_vm

  - name: Create vm tahitibob from centos8stream image and forcing memory to be 2G
    karmab.kcli_vm:
      name: tahitibob
      state: present
      #profile: centos8stream
      parameters:
       memory: 2048
    register: result
  - debug: var=result
Parameter Required Default Value
name true
client false
image false
profile false
parameters false Empty dict

kcli_info

- name: Get ip from vm tahitibob
  karmab.kcli_info:
    name: tahitibob
  register: result
- debug: var=result.meta.ip
Parameter Required Default Value
name true
client false
fields false Empty list
parameters false Empty dict

kcli_plan

- name: Launch plan wilibonka from plan file myplan.yml
  karmab.kcli_plan:
    name: wilibonka
    inputfile: myplan.yml
  register: result
- debug: var=result
Parameter Required Default Value
name true
client false
inputfile false
parameters false Empty dict

kcli_product

- name: Deploy product origin, provided there is a kcli repo providing it
  karmab.kcli_product:
    name: microshift
    product: microshift
Parameter Required Default Value
name true
client false
product true
repo false
parameters false Empty dict

kcli_cluster

- name: Create a k8s cluster
  karmab.kcli_cluster:
    state: absent
    name: myclu
    type: kubeadm
    parameters:
     ctlplanes: 3
     workers: 2
  register: result
- debug: var=result
Parameter Required Default Value
name true
client false
type false generic
parameters false Empty dict

License

Apache V2

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.