You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Nicolas Massé 40f5b416dd add var 2 years ago
..
files rework the playbook 2 years ago
group_vars/all add var 2 years ago
plugins/modules fix a bug with the start_compose module 2 years ago
templates add var 2 years ago
.gitignore rework the playbook 2 years ago
README.MD rework the playbook 2 years ago
ansible.cfg fix a bug with the start_compose module 2 years ago
bootstrap-ostree.yaml rework the playbook 2 years ago
build.yaml fix a bug with the start_compose module 2 years ago
prerequisites.yaml rework the playbook 2 years ago
requirements.yaml rework the playbook 2 years ago

README.MD

Installation on RHEL 9 Automatisation

Ansible Playbook allowing to create ostree images for edge using Ansible.

Pre-requisites

RHEL 9 pre-requisites :

  • RHEL 9 is installed
  • The Red Hat repositories baseos and appstream are reachable

Microshift pre-requisites :

  • RHEL 9.2 or 9.3
  • LVM volume group (VG) with unused space

Pre-requisites on the target machine

sudo subscription-manager register --username $RHN_LOGIN --auto-attach
sudo subscription-manager attach --pool=$RHN_POOL_ID

Ansible Config

Create a inventory.yaml file inside the ansible folder or define the inventory path inside the ansible.cfg file

Update config.yaml in ansible/group_vars/all/ to match your environment.

Create an ansible vault named vault.yaml in ansible/group_vars/all/ with the following content.

blueprint_admin_password_hash: # Generate one with "mkpasswd -m bcrypt"
kickstart_microshift_pull_secret: # Generate one on https://console.redhat.com/openshift/install/pull-secret

Install the required collections.

ansible-galaxy collection install -r requirements.yaml

Prepare the target machine

ansible-playbook prerequisites.yaml
ansible-playbook bootstrap-ostree.yaml

Regular builds

ansible-playbook build.yaml