← ClaudeAtlas

sales-demos-configlisted

Apply AAP config-as-code to an environment — credential types, credentials, job templates, schedules, execution environments, gateway settings, and hub remotes. Syncs the SCM project first so newly added playbooks are visible to template creation. Runs playbooks/config.yml. TRIGGER when: the user asks to push, apply, or refresh AAP configuration, says a job template is missing or wrong, wants to update gateway settings or branding, asks about config-as-code, asks why a newly added playbook is 'not found for project', or has merged a change and needs AAP to pick it up (Step 2 of /sales-demos-dev-workflow). SKIP: if the user wants to validate without changing anything — run validate.yml --check first (this skill covers that) — or wants to set up OpenShift Virtualization, which is ocpvirt-setup.
ericcames/sales.demos · ★ 1 · AI & Automation · score 67
Install: claude install-skill ericcames/sales.demos
# sales-demos-config Apply AAP configuration as code to an RHDP environment. Takes about **2 minutes** on a warm environment. This skill contains **no logic**. All the work is in [`playbooks/config.yml`](../../../playbooks/config.yml). See `CLAUDE.md` → *Skills and playbooks*. ## What it does 1. Asserts the environment is unambiguous (`--limit` must match `target_env`). 2. Asserts `aap_hostname`, `aap_username`, `aap_password` are set. 3. **Syncs the SCM project** to the latest `main` (#148) — so newly added playbooks are visible to template creation. 4. Applies all objects via `infra.aap_configuration.dispatch`: credential types, credentials, projects, inventories, job templates, workflow job templates, schedules, execution environments, gateway settings (branding, banner), hub remotes and repositories. 5. Reports what was applied. **Expect `changed` on every run.** AAP returns `SUBSCRIPTIONS_CLIENT_SECRET` as `$encrypted$` and never in the clear, so the controller_settings role rewrites it each time. That is the platform refusing to hand back a secret, not drift. ## How vars arrive There is no `vars_files` or `include_vars`. `--limit sandbox` loads `group_vars/aap/*` (shared) merged with `group_vars/sandbox/*` (per-env deltas), combined by `dispatch_include_wildcard_vars` in `group_vars/aap/aap_settings.yml`. ## Preflight Check ```bash ./utilities/preflight.sh "${ENV:-sandbox}" ``` If any check fails, stop and tell the user exactly which one and the fi