Skip to content

ericcames/aap.as.code

Repository files navigation

The Red Hat Demo Platform

This repo is designed to work with the Ansible Product Demos catalog item available in the Red Hat Demo Platform. This repo will be used to load up setup templates to pull in other demos.

Looking for other Daily Demos?

Ansible Product Demos

alt text

Getting started

  1. Get Automation Hub Token
  2. Create Service Account
  3. Ensure that we have a certified credential
    • Name
    Automation Hub - certified
    
    • Credential type
    Ansible Galaxy/Automation Hub API Token
    
    • Galaxy Server URL
    https://console.redhat.com/api/automation-hub/content/published/
    
    • Auth Server URL
    https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
    
    • API Token

alt text

  1. Ensure that we have a validated credential

    • Name
    Automation Hub - validated
    
    • Credential type
    Ansible Galaxy/Automation Hub API Token
    
    • Galaxy Server URL
    https://console.redhat.com/api/automation-hub/content/validated/
    
    • Auth Server URL
    https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
    
    • API Token
  2. Ensure the Galaxy credentials are related to the Default Organization alt text

  3. Create your vault credential

There is a dependency to use the team default_password that allows the F5 demo to work

alt text

  1. Create your project alt text

    • Name
    aap.as.code
    
    • Source control type
    Git
    
    • Source control URL
    https://github.com/ericcames/aap.as.code.git
    
  2. Create a remote vault with your secrets

Remote Vault
Example Vault

Variables for your online vault

Key Description Purpose
default_passwd Our team password; Also used in the F5 Default Password
redhat_username RH Service Account Username Used to register the system
redhat_passwd RH Service Account Password Used to register the system
ddw_password Windows server password Used to grant access to windows servers
ddw_username Windows server username Used to grant access to windows servers
snow_url The URL for your ServiceNow instance Used for SNOW automation
snow_username The username for your ServiceNow instance Used for SNOW automation
servicenow_passwd The password for your ServiceNow instance Used for SNOW automation
ssh_priv_key Your laptop private key Used to give you access to what you build.
dyna_key Not sure if this is used or not Need to determine if this is used
vault_passwd Not sure if this is used or not Need to determin if this is used
red_hat_auto_hub_token API Token for Red Hat Automation Hub Used to pull collections
my_ctrl_username Not sure if this is used Need to determine if this is used
my_ctrl_admin_password Not sure if this is used Need to determine if this is used
admin_password Admin password for the network gear Used for the admin password F5, Palo, Infoblox
reg_rh_io_passwd registry.redhat.io Used to get access to images
reg_rh_io_username registry.redhat.io Used to get access to images
quay_passwd quay.io Used to get access to images
quay_username quay.io Used to get access to images
customer_portal_username Red Hat Customer Portal Get access to software
customer_portal_password Red Hat Customer Portal Get access to software
rh_activation_key Red Hat activation key Used by the rhsm role
rh_org_id Red Hat Org ID Used by the rhsm role
  1. Add your public ssh key to a public repo. Amazon works with RSA keys.

Public SSH Key

  1. Update my_windows_catalog_short_description: Ames AAP Windows AWS Daily Demo with the short description of your catalog item.
    alt text

  2. Create your job template

Template name

Setup - AAP - CAC

alt text

Extra variables

my_windows_catalog_short_description: Ames AAP Windows AWS Daily Demo
my_vault: Eric Ames
my_remote_vault: >-
  https://raw.githubusercontent.com/ericcames/sourcefiles/refs/heads/main/vault_ames.yml
my_remote_ssh_pub_key: >-
  https://raw.githubusercontent.com/ericcames/sourcefiles/refs/heads/main/id_rsa.pub

ServiceNow EventDriven Ansible

Check out the playbooks/files/config_as_code/eda* files to see how much of the SNOW EDA integration is done. To finish off the integration check out the docs directory for the AAP_Servicenow.pdf.

AAP ServiceNow Setup

About

A showcase to Configuration as Code. This repo is designed to have a repeatable build process for Ansible Automation Platform sales demos. We are leveraging the work that the Red Hat Product Demos team is doing.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors