sborenst
2018-09-03 7a392233ac735450fb586c2ba2e97eba1a4353ac
commit | author | age
a2f44a 1 ###### VARIABLES YOU SHOULD CONFIGURE FOR YOUR DEPLOYEMNT
WK 2 ###### OR PASS as "-e" args to ansible-playbook command
3
4 ### Common Host settings
5 repo_method: file # Other Options are: file, satellite and rhn
6 # Do you want to run a full yum update
7 update_packages: true
8 #If using repo_method: satellite, you must set these values as well.
9 # satellite_url: https://satellite.example.com
10 # satellite_org: Sat_org_name
11 # satellite_activationkey: "rhel7basic"
12
13 ## guid is the deployment unique identifier, it will be appended to all tags,
14 ## files and anything that identifies this environment from another "just like it"
15 guid: defaultguid
16
17 # The next flag is 1 by default. If it is set to more than 1 then instead of creating
18 # clientvm.guid.baseurl it will create clientvm{1..num_users}.guid.baseurl
19 num_users: 1
20 install_bastion: true
21 install_common: true
22 install_opentlc_integration: true
23 install_ipa_client: false
7a3922 24 # Install a user id 'student'. If install_student_user=true then a global variable
a2f44a 25 # student_password=password needs to be provided with the password to set for the user student
WK 26 install_student_user: false
27 docker_device: /dev/xvdb
28 docker_version: "{{ '1.12.6' if repo_version | version_compare('3.9', '<')  else '1.13.1' }}"
29
30 ### If you want a Key Pair name created and injected into the hosts,
31 # set `set_env_authorized_key` to true and set the keyname in `env_authorized_key`
32 # you can use the key used to create the environment or use your own self generated key
33 # if you set "use_own_key" to false your PRIVATE key will be copied to the bastion. (This is {{key_name}})
34
35 use_own_key: true
36 env_authorized_key: "{{guid}}key"
37 ansible_ssh_private_key_file: ~/.ssh/{{key_name}}.pem
38 set_env_authorized_key: true
39
40 # Is this running from Red Hat Ansible Tower
41 tower_run: false
42
43 ### AWS EC2 Environment settings
44
45 ### Route 53 Zone ID (AWS)
46 # This is the Route53 HostedZoneId where you will create your Public DNS entries
47 # This only needs to be defined if your CF template uses route53
48 HostedZoneId: Z3IHLWJZOU9SRT
49 # The region to be used, if not specified by -e in the command line
50 aws_region: us-east-1
51 # The key that is used to
52 key_name: "default_key_name"
53
54 ## Networking (AWS)
55 subdomain_base_short: "{{ guid }}"
56 subdomain_base_suffix: ".example.opentlc.com"
57 subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"
58
59 ## Environment Sizing
60
61 clientvm_instance_type: "t2.large"
62
63 ###### VARIABLES YOU SHOULD ***NOT*** CONFIGURE FOR YOUR DEPLOYEMNT
64
65 ## This might get removed
66 env_specific_images:
67 #   - "registry.access.redhat.com/jboss-eap-7/eap70-openshift:latest"
68 #   - "registry.access.redhat.com/openshift3/jenkins-2-rhel7:latest"
69 #   - "registry.access.redhat.com/openshift3/jenkins-slave-maven-rhel7:latest"
70
71 #### Vars for the OpenShift Ansible hosts file
72 ## TODO: This should be registered as a variable. Awk for os verions (OCP).
73 ## yum info openshift...
74 osrelease: 3.9.40
75
76 ###### You can, but you usually wouldn't need to.
77 ansible_ssh_user: ec2-user
78 remote_user: ec2-user
79
80 common_packages:
81 - git
82 - ansible
83 - docker
84
85 rhel_repos:
86   - rhel-7-server-rpms
87   - rhel-7-server-extras-rpms
88   - rhel-7-server-ose-{{repo_version}}-rpms
89   - rhel-7-fast-datapath-rpms
90   - rhel-7-server-ansible-2.4-rpms
91
92 # use_subscription_manager: false
93 # use_own_repos: true
94 #
95 # rhn_pool_id_string: OpenShift Container Platform
96
97 ### CLOUDFORMATIONS vars
98
99 project_tag: "{{ env_type }}-{{ guid }}"
100
101 create_internal_dns_entries: false
102 zone_internal_dns: "{{guid}}.internal."
103 chomped_zone_internal_dns: "{{guid}}.internal"
104 zone_public_dns: "{{subdomain_base}}."
105
106 bastion_public_dns: "bastion.{{subdomain_base}}."
107 bastion_public_dns_chomped: "bastion.{{subdomain_base}}"
108 vpcid_name_tag: "{{subdomain_base}}"
109
110 az_1_name: "{{ aws_region }}a"
111 az_2_name: "{{ aws_region }}b"
112
113 subnet_private_1_cidr_block: "192.168.2.0/24"
114 subnet_private_1_az: "{{ az_2_name }}"
115 subnet_private_1_name_tag: "{{subdomain_base}}-private"
116
117 subnet_private_2_cidr_block: "192.168.1.0/24"
118 subnet_private_2_az: "{{ az_1_name }}"
119 subnet_private_2_name_tag: "{{subdomain_base}}-private"
120
121 subnet_public_1_cidr_block: "192.168.10.0/24"
122 subnet_public_1_az: "{{ az_1_name }}"
123 subnet_public_1_name_tag: "{{subdomain_base}}-public"
124
125 subnet_public_2_cidr_block: "192.168.20.0/24"
126 subnet_public_2_az: "{{ az_2_name }}"
127 subnet_public_2_name_tag: "{{subdomain_base}}-public"
128
129 dopt_domain_name: "{{ aws_region }}.compute.internal"
130
131 rtb_public_name_tag: "{{subdomain_base}}-public"
132 rtb_private_name_tag: "{{subdomain_base}}-private"
133
134 cf_template_description: "{{ env_type }}-{{ guid }} template "
135
136 cloudformation_retries: 2
137 ocp_report: false
138
7a3922 139 rootfs_size_clientvm: 60
a2f44a 140
WK 141 instances:
142   - name: "clientvm"
143     count: "{{num_users}}"
144     public_dns: true
145     flavor:
146       "ec2": "{{clientvm_instance_type}}"
147     tags:
148       - key: "AnsibleGroup"
149         value: "bastions"
150       - key: "ostype"
151         value: "linux"
152     rootfs_size: "{{ rootfs_size_clientvm }}"
153     volumes:
154       - device_name: "{{docker_device}}"
7a3922 155         volume_size: 40
a2f44a 156         volume_type: gp2