add blueprints

This commit is contained in:
willtome
2022-03-22 18:20:11 -04:00
parent fba52847cb
commit dbc592e799
7 changed files with 28 additions and 9 deletions

View File

@@ -1,2 +0,0 @@
---
vm_providers: []

View File

@@ -0,0 +1,7 @@
---
vm_providers:
- aws
aws_image_owners: 309956199498
aws_instance_size: t2.medium
aws_image_architecture: x86_64
aws_image_filter: 'RHEL-7.9_HVM*'

View File

@@ -0,0 +1,7 @@
---
vm_providers:
- aws
aws_image_owners: 309956199498
aws_instance_size: t3.micro
aws_image_architecture: x86_64
aws_image_filter: 'RHEL-8*HVM-*Hourly*'

View File

@@ -1,6 +1,6 @@
---
vm_blueprint_providers:
- aws
vm_blueprint_aws_instance_filter: 'Windows_Server-2019-English-Core-Base*'
vm_blueprint_aws_instance_size: t3.medium
vm_blueprint_aws_userdata_template: aws_windows_userdata
aws_instance_filter: 'Windows_Server-2019-English-Core-Base*'
aws_instance_size: t3.medium
aws_userdata_template: aws_windows_userdata

View File

@@ -10,9 +10,11 @@ aws_region: us-east-1
aws_vm_name: "{{ vm_name }}"
aws_vm_owner: "{{ vm_owner }}"
aws_blueprint: "{{ vm_blueprint }}"
aws_instance_filter: "{{ vm_blueprint_aws_instance_filter }}"
aws_instance_size: "{{ vm_blueprint_aws_instance_size }}"
aws_userdata_template: "{{ vm_blueprint_aws_userdata_template }}"
aws_image_filter: "{{ omit }}"
aws_image_size: "{{ omit }}"
aws_image_architecture: "{{ omit }}"
aws_image_owners: "{{ omit }} "
aws_userdata_template: "{{ omit }}"
aws_keypair_name: "{{ aws_vpc_name }}-{{ aws_vpc_prefix }}-demo-key"
aws_securitygroup_name: "{{ aws_vpc_name }}-{{ aws_vpc_prefix }}-sec-group"
aws_env_tag: prod

View File

@@ -13,8 +13,10 @@
- name: AWS| CREATE VM | find ami
amazon.aws.ec2_ami_info:
region: "{{ aws_region }}"
owners: "{{ aws_image_owner }}"
filters:
name: "{{ aws_instance_filter }}"
name: "{{ aws_image_filter }}"
architecture: "{{ aws_image_architecture }}"
register: amis
- name: AWS| CREATE VM | save ami

View File

@@ -1,6 +1,7 @@
---
user_message:
- Update AWS credential with Access and Secret key
- Update Workshop Credential with password used to login to Controller
controller_components:
- credentials
@@ -109,3 +110,5 @@ controller_templates:
required: true
choices: #"{{ lookup('fileglob', 'blueprints/*.yml') | regex_replace(',','\n') | regex_findall('.*/(.*)(?=.yml)') | list }}"
- windows
- rhel8
- rhel7