Skip to content

ericcames/aap.dailydemo.linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

594 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Automation Platform Daily Demo for Linux

A demo designed to showcase many of the use cases that people are looking for. We are using the workflow visualizer to show how the various building blocks are put together and enable the delivery on demand of a custom website. The playbooks call roles, the roles allow for ease of sharing the code and also allow for documentation of the various things needed in each role. The demo is designed to be integrated with an IT Service Management (ITSM) system. Everything will be documented in ITSM system via the skillfull use of automation. We have added integration with Red Hat Satellite to enable us to demo automated patching using satellite.

Day 0 - Configuration as code (CAC) a repeatable build process for this demo

Configuration as code give you an easy way to recover/move your ansible related artifacts to a new platform. That includes your hardcoded credentials. The hardcoded credentials can be safely vaulted in an ansible vault file. Check out the setup_demo.yml for the configurations for setting up this demo using configuration as code.

Setup - Linux Daily Demo - CAC

Variables used in the setup template

my_organization: AmesCO
my_vault: Eric Ames
my_rh_aap_credential: aap.kona.services
my_aws_credential: AWS Blank Open Environment pvwk8
my_aws_machine_credential: AWS Machine Credential - Ames
my_itsm_credential: ServiceNow ITSM Credential - Ames
my_itsm_username: hercules
my_sat_credential: sat.kona.services
timezone_id: America/Phoenix
satellite_host: https://sat.kona.services
remotevault: true
my_remote_vault: >-
  https://raw.githubusercontent.com/ericcames/aap.as.code/refs/heads/main/playbooks/files/vaults/ames/vault_ames.yml
aap_configuration_async_retries: 60

Day 1 - Run the Linux Daily Demo Workflow

The workflow

alt text alt text alt text

The playbooks

1. DDL - VM Create
2. DDL - Inventory Update
3. DDL - Get Instance Info
4. DDL - Red Hat Registration
5. DDL - Configuration Management
6. DDL - Application Install
7. DDL - Website deployment
Delete Daily Demo Linux clean everything up

ServiceNow

The playbooks

DDL - Create a CMDB record
DDL - Create CMDB relationship
DDL - Create Incident
DDL - Update request ticket -*

ServiceNow credential
Input configuration

fields:
  - id: instance
    type: string
    label: Instance
  - id: username
    type: string
    label: username
  - id: password
    type: string
    label: password
    secret: true
required:
  - instance
  - username
  - password

Injector configuration

env:
  SN_HOST: '{{instance}}'
  SN_PASSWORD: '{{password}}'
  SN_USERNAME: '{{username}}'
  • ServiceNow setup

Event-Driven Ansible Notification Service
Event-Driven Ansible Event Streams

  • Automated incident management example

Example Error Handling in support of incident enrichment

Event Driven Ansible (EDA) Rulebook driving the workflow

The website

alt text alt text alt text

Day 2 - Common tasks

Linux Day 2 - Facts Cached
Linux Day 2 - file check

Red Hat Satellite

alt text alt text

Cockpit the Administrators GUI

alt text

The command line; there's no place like home :-)

alt text

Looking for other Daily Demos?

About

The new home for Ansible Automation Platform Daily Demo using a Red Hat Linux server at Amazon

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages