Nandan Joshi
2020-03-03 50312a2d16531c9ef444e8880952582cc8347c69
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
### AWS EC2 Environment settings
 
### Route 53 Zone ID (AWS)
# This is the Route53 HostedZoneId where you will create your Public DNS entries
# This only needs to be defined if your CF template uses route53
HostedZoneId: Z3IHLWJZOU9SRT
 
# The region to be used, if not specified by -e in the command line
aws_region: us-east-1
 
# The key that is used to
key_name: "default_key_name"
 
## Networking (AWS)
subdomain_base_short: "{{ guid }}"
subdomain_base_suffix: ".example.opentlc.com"
subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"
 
## Environment Sizing
 
clientvm_instance_type: "t2.large"
clientvm_instance_image: RHELAMI
 
###### VARIABLES YOU SHOULD ***NOT*** CONFIGURE FOR YOUR DEPLOYEMNT
 
docker_device: /dev/xvdb
 
###### You can, but you usually wouldn't need to.
ansible_user: ec2-user
remote_user: ec2-user
 
### CLOUDFORMATIONS vars
 
zone_internal_dns: "{{guid}}.internal."
chomped_zone_internal_dns: "{{guid}}.internal"
 
bastion_public_dns: "bastion.{{subdomain_base}}."
bastion_public_dns_chomped: "bastion.{{subdomain_base}}"
vpcid_name_tag: "{{subdomain_base}}"
 
az_1_name: "{{ aws_region }}a"
az_2_name: "{{ aws_region }}b"
 
subnet_private_1_cidr_block: "192.168.2.0/24"
subnet_private_1_az: "{{ az_2_name }}"
subnet_private_1_name_tag: "{{subdomain_base}}-private"
 
subnet_private_2_cidr_block: "192.168.1.0/24"
subnet_private_2_az: "{{ az_1_name }}"
subnet_private_2_name_tag: "{{subdomain_base}}-private"
 
subnet_public_1_cidr_block: "192.168.10.0/24"
subnet_public_1_az: "{{ az_1_name }}"
subnet_public_1_name_tag: "{{subdomain_base}}-public"
 
subnet_public_2_cidr_block: "192.168.20.0/24"
subnet_public_2_az: "{{ az_2_name }}"
subnet_public_2_name_tag: "{{subdomain_base}}-public"
 
dopt_domain_name: "{{ aws_region }}.compute.internal"
 
rtb_public_name_tag: "{{subdomain_base}}-public"
rtb_private_name_tag: "{{subdomain_base}}-private"
 
cf_template_description: "{{ env_type }}-{{ guid }} template "
 
cloudformation_retries: 2
ocp_report: false
 
rootfs_size_clientvm: 200
 
instances:
- name: "clientvm"
  count: "{{ num_users }}"
  public_dns: true
  floating_ip: true
  image_id: "{{ clientvm_instance_image }}"
  flavor:
    ec2: "{{ clientvm_instance_type }}"
  tags:
  - key: "AnsibleGroup"
    value: "bastions"
  - key: "ostype"
    value: "linux"
  rootfs_size: "{{ rootfs_size_clientvm }}"
  volumes:
  - device_name: "{{docker_device}}"
    volume_size: "{{ docker_size }}"
    volume_type: gp2
  security_groups:
  - BastionSG