forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_vars_ec2.yml
61 lines (52 loc) · 1.87 KB
/
default_vars_ec2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
# DNS settings for environmnet
subdomain_base_short: "{{ guid }}"
subdomain_base_suffix: ".example.opentlc.com"
subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"
zone_internal_dns: "{{guid}}.internal."
chomped_zone_internal_dns: "{{guid}}.internal"
ansible_user: ec2-user
remote_user: ec2-user
# The region to be used, if not specified by -e in the command line
aws_region: us-east-1
node_instance_image: RHEL8-default
bastion_instance_image: RHEL8-default
###################################
# AWS Capacity Reservations
# Change this to enable
agnosticd_aws_capacity_reservation_enable: true
# You need to know the type of image first:
bastion_instance_platform: >-
{%- if agnosticd_images.bastion.platform_details | default('') == 'Red Hat BYOL Linux' -%}
Linux/UNIX
{%- else -%}
Red Hat Enterprise Linux
{%- endif -%}
node_instance_platform: >-
{%- if agnosticd_images.node.platform_details | default('') == 'Red Hat BYOL Linux' -%}
Linux/UNIX
{%- else -%}
Red Hat Enterprise Linux
{%- endif -%}
# You can use the above or hardcode the platform:
# For public images:
#node_instance_image: RHEL8-latest
#bastion_instance_image: RHEL8-latest
#bastion_instance_platform: Red Hat Enterprise Linux
#node_instance_platform: Red Hat Enterprise Linux
# For GOLD images:
#node_instance_image: RHEL8GOLD-latest
#bastion_instance_image: RHEL8GOLD-latest
#bastion_instance_platform: Linux/UNIX
#node_instance_platform: Linux/UNIX
# AWS on-demand capacity reservation
agnosticd_aws_capacity_reservation_regions:
- "{{ aws_region }}"
agnosticd_aws_capacity_reservations:
az1:
- instance_count: 1
instance_platform: "{{ bastion_instance_platform }}"
instance_type: "{{ bastion_instance_type.ec2 }}"
- instance_count: "{{ node_instance_count }}"
instance_platform: "{{ node_instance_platform }}"
instance_type: "{{ node_instance_type.ec2 }}"