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.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| files | 2 years ago | |
| group_vars/all | 2 years ago | |
| plugins/modules | 2 years ago | |
| templates | 2 years ago | |
| .gitignore | 2 years ago | |
| README.MD | 2 years ago | |
| ansible.cfg | 2 years ago | |
| bootstrap-ostree.yaml | 2 years ago | |
| build.yaml | 2 years ago | |
| prerequisites.yaml | 2 years ago | |
| requirements.yaml | 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"
blueprint_kiosk_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