No description
Find a file
Abhinav Anand cd814d938f
Merge pull request #7 from abhikdps/update_async_delay
Update AAP config async delay
2025-04-24 12:47:14 +05:30
exec_env Push EE image to quay.io portal_mvp_patterns 2024-12-11 07:30:14 +01:00
group_vars Update usecase urls to official one 2024-12-11 06:17:16 +01:00
.gitignore remove .lock from .gitignore 2025-04-24 12:46:28 +05:30
LICENSE Initial preseeding automation commit 2024-12-03 20:58:37 +00:00
load_pattern.yml Update AAP config async delay 2025-04-24 12:13:11 +05:30
pre_run_validation.yml Fail early if same git repo name multiple times 2024-12-03 23:07:25 +01:00
README.md Use AAP token to login into AAP 2024-12-11 11:18:40 +01:00
seed_portal_content.yml Set no log to true when credentials are passed with usecase repo url 2025-04-08 12:57:08 +05:30

ansible-pattern-loader

Ansible playbooks to seed seeding content into AAP. Playbooks create in AAP objects needed for Ansible Patterns - execution environment, project, job templates etc.

Run from AAP

This is how it is used as part of ansible experience.

Run from cli

For local development only.

Add vars needed to access AAP

cat aap.yml
---
aap_hostname: https://AAP_IP
aap_validate_certs: false
aap_token: todo

Install needed collections:

cat requirements.yml 
collections:
  - name: ansible.platform
  - name: ansible.hub
  - name: ansible.controller
  - name: ansible.eda
  - name: infra.aap_configuration
  - name: infra.ee_utilities
  - name: containers.podman

ansible-galaxy collection install -r requirements.yml
pip install ansible-builder

Run

ansible-playbook -e@aap.yml -e seed_usecase=rhel seed_portal_content.yml
ansible-playbook -e@aap.yml -e seed_usecase=network seed_portal_content.yml
ansible-playbook -e@aap.yml -e seed_usecase='{"rhel","network"}' seed_portal_content.yml

Prepare execution environment

An execution environment image is needed to run the seed_portal_content.yml in AAP. Follow exec_env/README.md to build one.