An open API service indexing awesome lists of open source software.

https://github.com/ericcames/aap.as.code

ansible.platform.as.code
https://github.com/ericcames/aap.as.code

Last synced: 4 months ago
JSON representation

ansible.platform.as.code

Awesome Lists containing this project

README

          

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?
=========

- [AAP Daily Demo Windows](https://github.com/ericcames/aap.dailydemo.windows "AAP Daily Demo Windows") - ready
- [AAP Daily Demo Linux](https://github.com/ericcames/aap.dailydemo.linux "AAP Daily Demo Linux")
- [AAP Daily Demo F5](https://github.com/ericcames/aap.dailydemo.F5 "AAP Daily Demo F5") - ready
- [AAP Daily Demo Panos](https://github.com/ericcames/aap.dailydemo.Panos "AAP Daily Demo Panos") - ready
- [AAP Daily Demo Satellite](https://github.com/ericcames/aap.dailydemo.satellite "AAP Daily Demo Satellite")
- [AAP Daily Demo hashicorp](https://github.com/ericcames/aap.dailydemo.hashicorp "AAP Daily Demo hashicorp") - ready
- [Datacenter 1](https://github.com/ericcames/demo.datacenter "Datacenter 1") - ready

# Ansible Product Demos

![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/redhatdemo.png "Catalog Item")

**Getting started**
1. [Get Automation Hub Token](https://console.redhat.com/ansible/automation-hub/token/ "Load Token")

2. [Create Service Account](https://github.com/ericcames/aap.as.code.starter.kit/blob/main/docs/Ansible%20Automation%20Platform%20Service%20Account.pdf "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](https://github.com/ericcames/aap.as.code/blob/main/images/AHcertified.png "certified")

4. 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

5. Ensure the Galaxy credentials are related to the Default Organization
![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/orgswithcreds.png "Default Organization")

6. Create your vault credential

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

![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/myvault.png "Vault")

7. Create your project
![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/project.png "aap.as.code")

8. Create a remote vault with your secrets

[Remote Vault](https://raw.githubusercontent.com/ericcames/sourcefiles/refs/heads/main/vault_ames.yml "vault_ames.yml")

[Example Vault](https://github.com/ericcames/sourcefiles/blob/main/vault_example.yml "vault_example.yml")

9. Add your public ssh key to a public repo. Amazon works with RSA keys.

[Public SSH Key](https://raw.githubusercontent.com/ericcames/sourcefiles/refs/heads/main/id_rsa.pub "Public SSH Key")

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

![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/snowshort.png "ServiceNow Catalog Item")

11. Create your job template

Template name
```
Setup - AAP - CAC
```

![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/setup_template.png "Setup - AAP - CAC")

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](https://github.com/ericcames/aap.as.code/blob/main/docs/AAP_Servicenow.pdf "AAP ServiceNow setup")