Giter VIP home page Giter VIP logo

rhel-fleet-management's Introduction

RHEL Fleet Manager

Use Ansible to manage RHEL instances using Fleet Manager or Image Builder.

Documentation

Fleet Manager with AAP Documentation

ansible-lint

Directory Structure

$ tree .
├── Makefile
├── README.md
├── ansible-builder
│   ├── ansible.cfg
│   ├── bindep.txt
│   ├── execution-environment.yml
│   ├── requirements.txt
│   └── requirements.yml
├── ansible-navigator
│   ├── local-ansible-navigator.yml
│   └── release-ansible-navigator.yml
├── collections
│   └── requirements.yml
├── docs
│   ├── README.md
│   ├── ansible-aap-instructions.md
│   ├── build-image.md
│   ├── create-device-group.md
│   ├── deploy-vm-on-to-kvm.md
│   ├── download-iso.md
│   ├── edge-console-microshift-demo.md
│   ├── edge-console-quarkus-coffeeshop.md
│   └── install-ansible-automation-platform.md
├── inventories
│   ├── edge1
│   │   ├── applications
│   │   │   └── quarkuscoffeeshop-majestic-monolith
│   │   │       ├── kickstart.ks
│   │   │       └── quarkuscoffeeshop-majestic-monolith.toml
│   │   └── hosts
│   ├── edge2
│   │   ├── applications
│   │   │   └── quarkuscoffeeshop-majestic-monolith
│   │   │       ├── kickstart.ks
│   │   │       └── quarkuscoffeeshop-majestic-monolith.toml
│   │   └── hosts
│   ├── edge3
│   │   ├── applications
│   │   │   └── quarkuscoffeeshop-majestic-monolith
│   │   │       ├── kickstart.ks
│   │   │       └── quarkuscoffeeshop-majestic-monolith.toml
│   │   └── hosts
│   └── lab
│       ├── applications
│       │   ├── microshift
│       │   │   └── fleet.kspost
│       │   ├── quarkuscoffeeshop-majestic-monolith
│       │   │   ├── kickstart.ks
│       │   │   └── quarkuscoffeeshop-majestic-monolith.toml
│       │   └── quarkuscoffeeshop-majestic-monolith-fleet-manger
│       │       ├── custom-fleet.kspost
│       │       ├── fleet.kspost
│       │       └── quarkuscoffeeshop-majestic-monolith.toml
│       ├── group_vars
│       │   ├── all.yml
│       │   └── control
│       │       ├── rhel-edge-kvm-role.yml
│       │       └── rhel-edge-management-role.yml
│       └── hosts
├── roles
│   └── requirements.yml
└── site.yml

22 directories, 40 files

Requirements setup ansible vault

Create a vault password file

curl -OL https://gist.githubusercontent.com/tosin2013/022841d90216df8617244ab6d6aceaf8/raw/94bbcb5f08e4d1f8507cef935a8ba27c092bb85a/ansible_vault_setup.sh
chmod +x ansible_vault_setup.sh
./ansible_vault_setup.sh

Install and run ansible safe

curl -OL https://github.com/tosin2013/ansiblesafe/releases/download/v0.0.6/ansiblesafe-v0.0.6-linux-amd64.tar.gz
tar -zxvf ansiblesafe-v0.0.6-linux-amd64.tar.gz
chmod +x ansiblesafe-linux-amd64 
sudo mv ansiblesafe-linux-amd64 /usr/local/bin/ansiblesafe
ansiblesafe -f 

Tested on

  • Fedora 37

Development Steps

$ git clone https://github.com/Red-Hat-SE-RTO/rhel-fleet-management.git
$ make install-ansible-navigator
$ make build-image
$ ansible-navigator  inventory --list -m stdout --vault-password-file $HOME/.vault_password

Test inventory

ansible-navigator  inventory --list -m stdout --vault-password-file $HOME/.vault_password

Deploy VM instances on KVM

ansible-navigator run site.yml \
        --vault-password-file "$HOME"/.vault_password -m stdout  -t create_kvm_vm --skip-tags "create_device_group,build_image,get_build_status,download_latest_iso"

Troubleshoting

"msg": "libvirtError: unsupported configuration: Emulator '/usr/libexec/qemu-kvm' does not support machine type 'pc-q35-rhel8.6.0'"

$ qemu-kvm -machine ?

rhel-fleet-management's People

Contributors

kenmoini avatar msolberg avatar ramzihusein avatar tosin2013 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.