Skip to content

Commit

Permalink
Create APD organization, team, and users
Browse files Browse the repository at this point in the history
Creates a separate organization for all Ansible Product Demos content,
as well as default teams and users for demos of RBAC.
  • Loading branch information
jce-redhat committed Feb 24, 2025
1 parent f21acc6 commit 26ef92b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
16 changes: 5 additions & 11 deletions controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ controller_configuration_async_delay: 3

controller_credentials:
- name: Automation Hub
organization: Default
organization: APD - Ansible Product Demos
credential_type: Ansible Galaxy/Automation Hub API Token
update_secrets: false
inputs:
url: https://console.redhat.com/api/automation-hub/
auth_url: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token

- name: Controller Credential
organization: Default
organization: APD - Ansible Product Demos
credential_type: Red Hat Ansible Automation Platform
update_secrets: false
state: exists
Expand All @@ -33,23 +33,17 @@ controller_execution_environments:
- name: Product Demos EE
image: '{{ apd_ee_image }}'

controller_organizations:
- name: Default
galaxy_credentials:
- Ansible Galaxy
- Automation Hub

controller_projects:
- name: Ansible Product Demos
organization: Default
organization: APD - Ansible Product Demos
scm_type: git
scm_url: '{{ apd_git_repo }}'
scm_branch: '{{ apd_git_repo_branch }}'
default_environment: Product Demos EE
wait: true

controller_templates:
- name: "Product Demos | Single demo setup"
- name: "Ansible Product Demos | Single demo setup"
job_type: run
inventory: Demo Inventory
project: Ansible Product Demos
Expand All @@ -74,7 +68,7 @@ controller_templates:
- openshift
- satellite

- name: "Product Demos | Multi-demo setup"
- name: "Ansible Product Demos | Multi-demo setup"
project: Ansible Product Demos
playbook: multi_select_setup.yml
inventory: Demo Inventory
Expand Down
23 changes: 23 additions & 0 deletions gateway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
user_default_password: 'CHANGEME!'

aap_organizations:
- name: APD - Ansible Product Demos
galaxy_credentials:
- Ansible Galaxy
- Automation Hub

aap_teams:
- name: APD Admins
organization: Ansible Product Demos
state: exists
- name: APD Users
organization: Ansible Product Demos
state: exists

aap_user_accounts:
- name: APD Admins
organization: Ansible Product Demos
state: exists

...

0 comments on commit 26ef92b

Please sign in to comment.