| | |
| | | --- |
| | | AWSTemplateFormatVersion: "2010-09-09" |
| | | Mappings: |
| | | RegionMapping: |
| | | us-east-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-6871a115 |
| | | RHEL81GOLD: ami-002cdac160d085b42 |
| | | {% else %} |
| | | RHELAMI: ami-c998b6b2 |
| | | {% endif %} |
| | | us-east-2: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-03291866 |
| | | {% else %} |
| | | RHELAMI: ami-cfdafaaa |
| | | {% endif %} |
| | | us-west-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-18726478 |
| | | {% else %} |
| | | RHELAMI: ami-66eec506 |
| | | {% endif %} |
| | | us-west-2: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-223f945a |
| | | {% else %} |
| | | RHELAMI: ami-9fa343e7 |
| | | {% endif %} |
| | | eu-west-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-7c491f05 |
| | | {% else %} |
| | | RHELAMI: ami-bb9a6bc2 |
| | | {% endif %} |
| | | eu-central-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-c86c3f23 |
| | | {% else %} |
| | | RHELAMI: ami-d74be5b8 |
| | | {% endif %} |
| | | ap-northeast-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-6b0d5f0d |
| | | {% else %} |
| | | RHELAMI: ami-30ef0556 |
| | | {% endif %} |
| | | ap-northeast-2: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-3eee4150 |
| | | {% else %} |
| | | RHELAMI: ami-0f5a8361 |
| | | {% endif %} |
| | | ap-southeast-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-76144b0a |
| | | {% else %} |
| | | RHELAMI: ami-10bb2373 |
| | | {% endif %} |
| | | ap-southeast-2: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-67589505 |
| | | {% else %} |
| | | RHELAMI: ami-ccecf5af |
| | | {% endif %} |
| | | ap-south-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-5b673c34 |
| | | {% else %} |
| | | RHELAMI: ami-cdbdd7a2 |
| | | {% endif %} |
| | | sa-east-1: |
| | | {% if osrelease is version_compare('3.9.25', '>=') %} |
| | | RHELAMI: ami-b0b7e3dc |
| | | {% else %} |
| | | RHELAMI: ami-a789ffcb |
| | | {% endif %} |
| | | DNSMapping: |
| | | us-east-1: |
| | | domain: "us-east-1.compute.internal" |
| | | us-west-1: |
| | | domain: "us-west-1.compute.internal" |
| | | us-west-2: |
| | | domain: "us-west-2.compute.internal" |
| | | eu-west-1: |
| | | domain: "eu-west-1.compute.internal" |
| | | eu-central-1: |
| | | domain: "eu-central-1.compute.internal" |
| | | ap-northeast-1: |
| | | domain: "ap-northeast-1.compute.internal" |
| | | ap-northeast-2: |
| | | domain: "ap-northeast-2.compute.internal" |
| | | ap-southeast-1: |
| | | domain: "ap-southeast-1.compute.internal" |
| | | ap-southeast-2: |
| | | domain: "ap-southeast-2.compute.internal" |
| | | sa-east-1: |
| | | domain: "sa-east-1.compute.internal" |
| | | ap-south-1: |
| | | domain: "ap-south-1.compute.internal" |
| | | RegionMapping: {{ aws_ami_region_mapping | to_json }} |
| | | DNSMapping: {{ aws_dns_mapping | to_json }} |
| | | |
| | | Resources: |
| | | Vpc: |
| | |
| | | HostedZoneConfig: |
| | | Comment: "Created By ansible agnostic deployer" |
| | | |
| | | {# if deploying many clientvms #} |
| | | {% if num_users|d(1)|int > 1 %} |
| | | {% for c in range(1,num_users|int+1) %} |
| | | |
| | |
| | | {% if 'image_id' in instances[0] %} |
| | | - {{ instances[0].image_id }} |
| | | {% else %} |
| | | - 'RHELAMI' |
| | | - 'RHEL81' |
| | | {% endif %} |
| | | {% endif %} |
| | | InstanceType: "{{instances[0]['flavor'][cloud_provider]}}" |
| | |
| | | - PublicIp |
| | | {% endfor %} |
| | | |
| | | |
| | | {# deploying just one clientvm #} |
| | | {% else %} |
| | | clientvm: |
| | | Type: "AWS::EC2::Instance" |
| | |
| | | Fn::FindInMap: |
| | | - RegionMapping |
| | | - Ref: AWS::Region |
| | | - 'RHELAMI' |
| | | {% if 'image_id' in instances[0] %} |
| | | - {{ instances[0].image_id }} |
| | | {% else %} |
| | | - 'RHEL81' |
| | | {% endif %} |
| | | {% endif %} |
| | | InstanceType: "{{instances[0]['flavor'][cloud_provider]}}" |
| | | KeyName: "{{instances[0]['key_name'] | default(key_name)}}" |