Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud updates #85

Merged
merged 18 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If you would like to contribute to this project please refer to [contribution gu
3. Finally, Create a Job Template called `Setup` with the following configuration:

- Name: Setup
- Inventory: Workshop Inventory
- Inventory: Demo Inventory
- Exec Env: Control Plane EE
- Playbook: setup_demo.yml
- Credentials:
Expand Down
6 changes: 6 additions & 0 deletions cloud/blueprints/al2023.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
vm_providers:
- aws
aws_instance_size: t3.micro
aws_image_architecture: x86_64
aws_image_filter: 'al2023-ami-2023*'
12 changes: 0 additions & 12 deletions cloud/create_infra.yml

This file was deleted.

25 changes: 0 additions & 25 deletions cloud/create_vm.yml

This file was deleted.

56 changes: 29 additions & 27 deletions cloud/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ controller_projects:
organization: Default
scm_type: git
wait: true
# scm_url: https://github.com/ansible-content-lab/aws.infrastructure_config_demos.git
scm_url: https://github.com/willtome/aws.infrastructure_config_demos.git
scm_url: https://github.com/ansible-content-lab/aws.infrastructure_config_demos.git
default_environment: Cloud Services Execution Environment

controller_credentials:
Expand All @@ -43,7 +42,7 @@ controller_inventory_sources:
- name: AWS Inventory
organization: Default
source: ec2
inventory: Workshop Inventory
inventory: Demo Inventory
credential: AWS
overwrite: true
source_vars:
Expand All @@ -66,7 +65,7 @@ controller_inventory_sources:
# - name: Azure Inventory
# organization: Default
# source: azure_rm
# inventory: Workshop Inventory
# inventory: Demo Inventory
# credential: Azure
# execution_environment: Ansible Engine 2.9 execution environment
# overwrite: true
Expand All @@ -82,7 +81,7 @@ controller_inventory_sources:

controller_groups:
- name: cloud_aws
inventory: Workshop Inventory
inventory: Demo Inventory
variables:
ansible_user: ec2-user

Expand All @@ -94,7 +93,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_create_peer_network.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -110,7 +109,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_delete_peer_network.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -124,7 +123,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_create_transit_network.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -140,7 +139,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_delete_transit_network.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -154,7 +153,7 @@ controller_templates:
- AWS
project: Ansible official demo project
playbook: cloud/create_vpc.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand Down Expand Up @@ -182,25 +181,22 @@ controller_templates:
organization: Default
credentials:
- AWS
- Workshop Credential
- Demo Credential
project: Ansible Cloud Content Lab - AWS
playbook: playbook_create_vm.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
survey_enabled: true
allow_simultaneous: true
extra_vars:
aws_region: us-east-1
aws_keypair_name: aws-test-key
survey:
name: ''
description: ''
spec:
- question_name: AWS Region
type: multiplechoice
variable: aws_region
variable: create_vm_aws_region
required: true
choices:
- us-east-1
Expand All @@ -209,19 +205,19 @@ controller_templates:
- us-west-2
- question_name: Name
type: text
variable: vm_name
variable: create_vm_vm_name
required: true
- question_name: Owner
type: text
variable: vm_owner
variable: create_vm_vm_owner
required: true
- question_name: Deployment
type: text
variable: vm_deployment
variable: create_vm_vm_deployment
required: true
- question_name: Environment
type: multiplechoice
variable: vm_environment
variable: create_vm_vm_environment
required: true
choices:
- Dev
Expand All @@ -237,26 +233,32 @@ controller_templates:
- rhel9
- rhel8
- rhel7
- al2023
- question_name: Subnet
type: text
variable: aws_vpc_subnet_name
variable: create_vm_aws_vpc_subnet_name
required: true
default: aws-test-subnet
- question_name: Security Group
type: text
variable: aws_securitygroup_name
variable: create_vm_aws_securitygroup_name
required: true
default: aws-test-sg
- question_name: SSH Keypair
type: text
variable: create_vm_aws_keypair_name
required: true
default: aws-test-key

- name: Cloud / AWS / Delete VM
job_type: run
organization: Default
credentials:
- AWS
- Workshop Credential
- Demo Credential
project: Ansible Cloud Content Lab - AWS
playbook: playbook_delete_inventory_vm.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -279,7 +281,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_create_reports.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand All @@ -294,7 +296,7 @@ controller_templates:
- AWS
project: Ansible Cloud Content Lab - AWS
playbook: playbook_create_reports.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand Down Expand Up @@ -322,7 +324,7 @@ controller_templates:
- AWS
project: Ansible official demo project
playbook: cloud/aws_key.yml
inventory: Workshop Inventory
inventory: Demo Inventory
notification_templates_started: Telemetry
notification_templates_success: Telemetry
notification_templates_error: Telemetry
Expand Down
4 changes: 2 additions & 2 deletions collections/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
collections:
- name: ansible.controller
version: 4.3.0
version: 4.4.0
- name: redhat_cop.controller_configuration
version: 2.2.5
version: 2.3.1
# linux
- name: redhat.insights
version: 1.0.7
Expand Down
Loading