Merge branch 'main' into gitlab_ver

This commit is contained in:
Dale Lemons
2024-06-06 12:43:12 -04:00
committed by GitHub
11 changed files with 39 additions and 84 deletions

5
.gitignore vendored
View File

@@ -1,4 +1,4 @@
ansible-navigator.log
sean_login_info.yml sean_login_info.yml
.DS_Store .DS_Store
choose_demo.yml choose_demo.yml
@@ -6,6 +6,7 @@ choose_demo_example_azure.yml
choose_demo_example_aws.yml choose_demo_example_aws.yml
.ansible.cfg .ansible.cfg
*.gz *.gz
*artifact*.json
**/roles/* **/roles/*
!**/roles/requirements.yml !**/roles/requirements.yml
.deployment_id

View File

@@ -31,13 +31,19 @@ This project is tested for compatibility with the [demo.redhat.com Product Demos
> You can also use an execution environment for disconnected environments. To do this, you must disable collection downloads in the Controller. This can be done in `Settings` > `Job Settings`. This setting prevents the controller from downloading collections listed in the [collections/requirements.yml](collections/requirements.yml) file. > You can also use an execution environment for disconnected environments. To do this, you must disable collection downloads in the Controller. This can be done in `Settings` > `Job Settings`. This setting prevents the controller from downloading collections listed in the [collections/requirements.yml](collections/requirements.yml) file.
2. If it is not already created for you, create a Project called `Ansible official demo project` with this repo as a source. NOTE: if you are using a fork, be sure that you have the correct URL. Update the project. 2. If it is not already created for you, add an Execution Environment called `product-demos`
3. Finally, Create a Job Template called `Setup` with the following configuration: - Name: product-demos
- Image: quay.io/acme_corp/product-demos-ee:latest
- Pull: Only pull the image if not present before running
3. If it is not already created for you, create a Project called `Ansible official demo project` with this repo as a source. NOTE: if you are using a fork, be sure that you have the correct URL. Update the project.
4. Finally, Create a Job Template called `Setup` with the following configuration:
- Name: Setup - Name: Setup
- Inventory: Demo Inventory - Inventory: Demo Inventory
- Exec Env: Control Plane EE - Exec Env: product-demos
- Playbook: setup_demo.yml - Playbook: setup_demo.yml
- Credentials: - Credentials:
- Type: Red Hat Ansible Automation Platform - Type: Red Hat Ansible Automation Platform

View File

@@ -1,14 +1,7 @@
--- ---
user_message: _deployment_id: "{{ lookup('file', playbook_dir + '/.deployment_id') }}"
controller_components: user_message:
- execution_environments
- projects
- credentials
- inventory_sources
- groups
- job_templates
- workflow_job_templates
controller_execution_environments: controller_execution_environments:
- name: Cloud Services Execution Environment - name: Cloud Services Execution Environment
@@ -293,6 +286,7 @@ controller_templates:
notification_templates_error: Telemetry notification_templates_error: Telemetry
extra_vars: extra_vars:
aws_report: vpc aws_report: vpc
reports_aws_bucket_name: reports-pd-{{ _deployment_id }}
survey_enabled: true survey_enabled: true
survey: survey:
name: '' name: ''
@@ -321,6 +315,7 @@ controller_templates:
notification_templates_error: Telemetry notification_templates_error: Telemetry
extra_vars: extra_vars:
aws_report: tags aws_report: tags
reports_aws_bucket_name: reports-pd-{{ _deployment_id }}
survey_enabled: true survey_enabled: true
survey: survey:
name: '' name: ''

View File

@@ -1,44 +1,30 @@
--- ---
collections: collections:
- name: ansible.controller - name: ansible.controller
version: 4.4.0 - name: infra.ah_configuration
- name: infra.controller_configuration
- name: redhat_cop.controller_configuration - name: redhat_cop.controller_configuration
version: 2.3.1
# linux # linux
- name: ansible.posix - name: ansible.posix
version: 1.5.4
- name: redhat.insights
version: 1.0.7
- name: redhat.rhel_system_roles
version: 1.20.0
- name: community.general - name: community.general
version: 6.3.0 version: ">=8.0.0"
- name: containers.podman - name: containers.podman
- name: redhat.insights
- name: redhat.rhel_system_roles
# windows # windows
- name: ansible.windows
- name: chocolatey.chocolatey - name: chocolatey.chocolatey
- name: community.windows - name: community.windows
version: 1.12.0
- name: ansible.windows
version: 1.13.0
# cloud # cloud
- name: azure.azcollection
version: 1.14.0
- name: amazon.aws - name: amazon.aws
version: 5.2.0
# satellite # satellite
- name: redhat.satellite - name: redhat.satellite
version: 3.8.0
# network # network
- name: cisco.ios
version: 4.4.0
- name: cisco.nxos
version: 4.1.0
- name: cisco.iosxr
version: 5.0.0
- name: ansible.netcommon - name: ansible.netcommon
version: 5.0.0 - name: cisco.ios
- name: cisco.iosxr
- name: cisco.nxos
# openshift # openshift
- name: redhat.openshift
version: 2.3.0
- name: kubernetes.core - name: kubernetes.core
version: 2.4.0 - name: redhat.openshift
- name: redhat.openshift_virtualization

View File

@@ -3,13 +3,9 @@ user_message:
- Update the 'activation_key' and 'org_id' extra variables for 'LINUX / Register with Insights'. https://access.redhat.com/management/activation_keys - Update the 'activation_key' and 'org_id' extra variables for 'LINUX / Register with Insights'. https://access.redhat.com/management/activation_keys
- Update Credential for Insights Inventory with Red Hat account. - Update Credential for Insights Inventory with Red Hat account.
- Add variables for system_roles. https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhel_system_roles - Add variables for system_roles. https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhel_system_roles
controller_components:
- projects
- credential_types
- credentials
- inventory_sources
- job_templates
# "!unsafe" used to pass raw jinja2 through to the injector definition, see
# https://github.com/redhat-cop/controller_configuration/tree/devel/roles/credential_types#formating-injectors
controller_credential_types: controller_credential_types:
- name: Insights Collection - name: Insights Collection
kind: cloud kind: cloud
@@ -24,8 +20,8 @@ controller_credential_types:
secret: true secret: true
injectors: injectors:
env: env:
INSIGHTS_USER: "{% raw %}{ { insights_user }}{% endraw %}" INSIGHTS_USER: !unsafe '{{ insights_user }}'
INSIGHTS_PASSWORD: "{% raw %}{ { insights_password }}{% endraw %}" INSIGHTS_PASSWORD: !unsafe '{{ insights_password }}'
controller_credentials: controller_credentials:
- name: Insights Inventory - name: Insights Inventory

View File

@@ -15,4 +15,4 @@
- name: Default Components - name: Default Components
ansible.builtin.include_role: ansible.builtin.include_role:
name: "redhat_cop.controller_configuration.job_launch" name: "infra.controller_configuration.job_launch"

View File

@@ -1,15 +1,6 @@
--- ---
user_message: user_message:
controller_components:
- execution_environments
- projects
- inventories
- hosts
- inventory_sources
- inventory_source_update
- job_templates
controller_execution_environments: controller_execution_environments:
- name: Networking Execution Environment - name: Networking Execution Environment
image: quay.io/nleiva/ee-network-image image: quay.io/nleiva/ee-network-image

View File

@@ -1,8 +1,4 @@
--- ---
controller_components:
- credentials
- job_templates
controller_credentials: controller_credentials:
- name: OpenShift Credential - name: OpenShift Credential
organization: Default organization: Default

View File

@@ -1,14 +1,6 @@
--- ---
user_message: user_message:
controller_components:
- credential_types
- credentials
- inventory_sources
- job_templates
- job_launch
- workflow_job_templates
controller_credential_types: controller_credential_types:
- name: Satellite Collection - name: Satellite Collection
kind: cloud kind: cloud

View File

@@ -6,16 +6,11 @@
tasks: tasks:
- name: Default Components - name: Default Components
ansible.builtin.include_role: ansible.builtin.include_role:
name: "redhat_cop.controller_configuration.{{ item }}" name: infra.controller_configuration.dispatch
loop: "{{ controller_components }}"
vars: # noqa var-naming[no-role-prefix] vars: # noqa var-naming[no-role-prefix]
controller_components:
- notification_templates
- job_templates
- settings
controller_execution_environments: controller_execution_environments:
- name: product-demos - name: product-demos
image: http://quay.io/acme_corp/product-demos-ee:latest image: quay.io/acme_corp/product-demos-ee:latest
controller_organizations: controller_organizations:
- name: Default - name: Default
default_environment: product-demos default_environment: product-demos
@@ -54,15 +49,16 @@
- name: "SESSION_COOKIE_AGE" - name: "SESSION_COOKIE_AGE"
value: 180000 value: 180000
- name: Create reusable deployment ID
ansible.builtin.set_fact:
_deployment_id: '{{ lookup("ansible.builtin.password", "{{ playbook_dir }}/.deployment_id", chars=["ascii_lowercase", "digits"], length=5) }}'
- name: "Include configuration for {{ demo }}" - name: "Include configuration for {{ demo }}"
ansible.builtin.include_vars: "{{ demo }}/setup.yml" ansible.builtin.include_vars: "{{ demo }}/setup.yml"
- name: Demo Components - name: Demo Components
ansible.builtin.include_role: ansible.builtin.include_role:
name: "redhat_cop.controller_configuration.{{ item }}" name: "infra.controller_configuration.dispatch"
loop: "{{ controller_components }}"
when:
- controller_components | d("") | length > 0
- name: Log Demo - name: Log Demo
ansible.builtin.uri: ansible.builtin.uri:

View File

@@ -2,10 +2,6 @@
user_message: | user_message: |
'' ''
controller_components:
- projects
- job_templates
controller_projects: controller_projects:
- name: Fact Scan - name: Fact Scan
organization: Default organization: Default