How nlwmn/self-serve-deployment works
This repository automates deployment of the Ansible automation portal appliance as a KVM guest on an existing RHEL host. The main workflow downloads and verifies the qcow2 image, registers and prepares the host, creates the guest with cloud-init configuration, and forwards HTTPS traffic to it. Separate playbooks handle image download and guest removal. The README documents the orchestration and configuration, but no source excerpts were available, so relationships below are based on those documented steps rather than inspected task implementations.
Main entry points: deploy_self_serve_vm.yml Deploy VM · download_image.yml Download image · self-serve-inventory.yml.example KVM inventory · destroy_self_server_vm.yml Destroy VM
Components 17
Inputs and configuration
- KVM inventory
inventory/self-serve-inventory.yml.example - VM settings
vars/vars_self_serve.yml - Credentials and keys
vars/vault_private_vars.yml.example - Ansible defaults
ansible.cfg
Image acquisition
- Download image
download_image.yml - Red Hat image service
- Portal qcow2 image
Host and guest deployment
- Deploy VM
deploy_self_serve_vm.yml - RHEL KVM host
- Cloud-init ISO
- Guest user-data
templates/user-data.j2 - Guest meta-data
templates/meta-data.j2
Portal access and lifecycle
- Portal guest
- Automation Controller
- Destroy VM
destroy_self_server_vm.yml
Other components
- Operator
- Portal user
Connections 28
- Operator → Download image: runs first
README.md - Operator → Deploy VM: runs next
README.md - Operator → Destroy VM: runs separately
README.md - Ansible defaults → KVM inventory: selects default
README.md - KVM inventory → Deploy VM: targets host
README.md - KVM inventory → Download image: targets host
README.md - KVM inventory → Destroy VM: targets host
README.md - VM settings → Download image: sets image inputs
README.md - Credentials and keys → Download image: provides token
README.md - Download image → Red Hat image service: looks up and downloads
README.md - Download image → Portal qcow2 image: saves verified image
README.md - VM settings → Deploy VM: sets VM parameters
README.md - Credentials and keys → Deploy VM: provides registration data
README.md - Deploy VM → RHEL KVM host: registers and prepares
README.md - Deploy VM → Portal qcow2 image: copies qcow2
README.md - Deploy VM → Guest user-data: renders
README.md - Deploy VM → Guest meta-data: renders
README.md - Deploy VM → Cloud-init ISO: builds ISO
README.md - Guest user-data → Cloud-init ISO: configures
README.md - Guest meta-data → Cloud-init ISO: provides instance metadata
README.md - Deploy VM → Portal guest: defines and starts
README.md - Cloud-init ISO → Portal guest: configures on boot
README.md - Credentials and keys → Guest user-data: supplies guest credentials
README.md - Deploy VM → RHEL KVM host: forwards HTTPS
README.md - Portal user → Portal guest: opens portal
README.md - Portal guest → Automation Controller: uses configured connection
README.md - Destroy VM → Portal guest: stops and undefines
README.md - Destroy VM → RHEL KVM host: removes guest storage
README.md