177 lines
4.4 KiB
YAML
177 lines
4.4 KiB
YAML
---
|
|
user_message:
|
|
- Update AWS credential with Access and Secret key
|
|
- Update Workshop Credential with password used to login to Controller
|
|
|
|
controller_components:
|
|
- credentials
|
|
- inventory_sources
|
|
- groups
|
|
- job_templates
|
|
|
|
controller_credentials:
|
|
- name: AWS
|
|
credential_type: Amazon Web Services
|
|
organization: Default
|
|
update_secrets: false
|
|
inputs:
|
|
username: REPLACEME
|
|
password: REPLACEME
|
|
|
|
#- name: Azure
|
|
# credential_type: Microsoft Azure Resource Manager
|
|
# organization: Default
|
|
# update_secrets: false
|
|
# inputs:
|
|
# subscription: REPLACEME
|
|
|
|
controller_inventory_sources:
|
|
- name: AWS Inventory
|
|
organization: Default
|
|
source: ec2
|
|
inventory: Workshop Inventory
|
|
credential: AWS
|
|
overwrite: true
|
|
source_vars:
|
|
hostnames:
|
|
- tag:Name
|
|
compose:
|
|
ansible_host: public_ip_address
|
|
ansible_user: 'ec2-user'
|
|
groups:
|
|
cloud_aws: true
|
|
os_linux: tags.blueprint.startswith('rhel')
|
|
keyed_groups:
|
|
- key: platform
|
|
prefix: os
|
|
- key: tags.blueprint
|
|
prefix: blueprint
|
|
- key: tags.owner
|
|
prefix: owner
|
|
|
|
#- name: Azure Inventory
|
|
# organization: Default
|
|
# source: azure_rm
|
|
# inventory: Workshop Inventory
|
|
# credential: Azure
|
|
# execution_environment: Ansible Engine 2.9 execution environment
|
|
# overwrite: true
|
|
# source_vars:
|
|
# hostnames:
|
|
# - tags.Name
|
|
# - default
|
|
# keyed_groups:
|
|
# - key: os_profile.system
|
|
# prefix: os
|
|
# conditional_groups:
|
|
# cloud_azure: true
|
|
|
|
controller_groups:
|
|
- name: cloud_aws
|
|
inventory: Workshop Inventory
|
|
variables:
|
|
ansible_user: ec2-user
|
|
|
|
controller_templates:
|
|
- name: Cloud / Create Infra
|
|
job_type: run
|
|
organization: Default
|
|
credentials:
|
|
- AWS
|
|
#- Azure
|
|
project: Ansible official demo project
|
|
playbook: cloud/create_infra.yml
|
|
inventory: Workshop Inventory
|
|
notification_templates_started: Telemetry
|
|
notification_templates_success: Telemetry
|
|
notification_templates_error: Telemetry
|
|
survey_enabled: true
|
|
extra_vars:
|
|
aws_region: us-east-2
|
|
survey:
|
|
name: ''
|
|
description: ''
|
|
spec:
|
|
- question_name: Infra Provider
|
|
type: multiplechoice
|
|
variable: infra_provider
|
|
required: true
|
|
choices:
|
|
- aws
|
|
#- azure
|
|
- question_name: AWS Public Key (only required for aws provider)
|
|
type: textarea
|
|
required: false
|
|
variable: aws_public_key
|
|
|
|
- name: Cloud / Create VM
|
|
job_type: run
|
|
organization: Default
|
|
credentials:
|
|
- AWS
|
|
#- Azure
|
|
- Workshop Credential
|
|
project: Ansible official demo project
|
|
playbook: cloud/create_vm.yml
|
|
inventory: Workshop Inventory
|
|
notification_templates_started: Telemetry
|
|
notification_templates_success: Telemetry
|
|
notification_templates_error: Telemetry
|
|
survey_enabled: true
|
|
extra_vars:
|
|
aws_region: us-east-2
|
|
survey:
|
|
name: ''
|
|
description: ''
|
|
spec:
|
|
- question_name: Name
|
|
type: text
|
|
variable: vm_name
|
|
required: true
|
|
- question_name: Owner
|
|
type: text
|
|
variable: vm_owner
|
|
required: true
|
|
- question_name: Provider
|
|
type: multiplechoice
|
|
variable: vm_provider
|
|
required: true
|
|
choices:
|
|
- aws
|
|
#- azure
|
|
- question_name: Blueprint
|
|
type: multiplechoice
|
|
variable: vm_blueprint
|
|
required: true
|
|
choices: #"{{ lookup('fileglob', 'blueprints/*.yml') | regex_replace(',','\n') | regex_findall('.*/(.*)(?=.yml)') | list }}"
|
|
- windows_core
|
|
- windows_full
|
|
- rhel9
|
|
- rhel8
|
|
- rhel7
|
|
|
|
- name: Cloud / Destroy VM
|
|
job_type: run
|
|
organization: Default
|
|
credentials:
|
|
- AWS
|
|
#- Azure
|
|
- Workshop Credential
|
|
project: Ansible official demo project
|
|
playbook: cloud/destroy_vm.yml
|
|
inventory: Workshop Inventory
|
|
notification_templates_started: Telemetry
|
|
notification_templates_success: Telemetry
|
|
notification_templates_error: Telemetry
|
|
survey_enabled: true
|
|
extra_vars:
|
|
aws_region: us-east-2
|
|
survey:
|
|
name: ''
|
|
description: ''
|
|
spec:
|
|
- question_name: Name or Pattern
|
|
type: text
|
|
variable: HOSTS
|
|
required: true
|