commit | author | age
|
1874b6
|
1 |
###### VARIABLES YOU SHOULD CONFIGURE FOR YOUR DEPLOYEMNT |
GC |
2 |
###### OR PASS as "-e" args to ansible-playbook command |
|
3 |
|
|
4 |
### Common Host settings |
|
5 |
# Repo Method. One of file, satellite and rhn |
|
6 |
repo_method: file |
|
7 |
|
|
8 |
#If using repo_method: satellite, you must set these values as well. |
|
9 |
# satellite_url: satellite.example.com |
|
10 |
# satellite_org: Sat_org_name |
|
11 |
# satellite_activationkey: "rhel7basic" |
|
12 |
|
|
13 |
# Do you want to run a full yum update |
|
14 |
update_packages: false |
|
15 |
|
|
16 |
## guid is the deployment unique identifier, it will be appended to all tags, |
|
17 |
## files and anything that identifies this environment from another "just like it" |
|
18 |
#guid: defaultguid |
|
19 |
|
|
20 |
# The next flag is 1 by default. If it is set to more than 1 then instead of creating |
|
21 |
# clientvm.guid.baseurl it will create clientvm{1..num_users}.guid.baseurl |
|
22 |
num_users: 1 |
|
23 |
install_bastion: true |
|
24 |
install_common: true |
|
25 |
install_opentlc_integration: true |
|
26 |
install_ipa_client: false |
|
27 |
install_student_user: false |
071a87
|
28 |
install_ftl: false |
1874b6
|
29 |
|
cdff19
|
30 |
# install openshift python modules on bastion |
GC |
31 |
install_k8s_modules: true |
|
32 |
|
1874b6
|
33 |
## Automatically deploy ocp4 cluster using the installer |
cdff19
|
34 |
install_ocp4: true |
6b8231
|
35 |
ocp4_installer_version: "4.1.0-rc.3" |
1874b6
|
36 |
oc_client_version: "4.0.22" |
GC |
37 |
cluster_name: "cluster-{{ guid }}" |
|
38 |
|
|
39 |
# Smoke tests |
|
40 |
# if set to true, the playbook will fail if the smoke tests failed. |
|
41 |
# if set to false, the smoke tests are just informative. |
|
42 |
smoke_tests: false |
|
43 |
|
|
44 |
## Install Authentication. |
|
45 |
## Valid options are none, htpasswd, ldap (and maybe in the future sso) |
|
46 |
## For LDAP a bindPassword needs to be passed via the command line |
|
47 |
install_idm: "none" |
|
48 |
idm_ca_url: http://ipa.opentlc.com/ipa/config/ca.crt |
|
49 |
|
|
50 |
### If you want a Key Pair name created and injected into the hosts, |
|
51 |
# set `set_env_authorized_key` to true and set the keyname in `env_authorized_key` |
|
52 |
# you can use the key used to create the environment or use your own self generated key |
|
53 |
# if you set "use_own_key" to false your PRIVATE key will be copied to the bastion. (This is {{key_name}}) |
|
54 |
|
|
55 |
use_own_key: true |
|
56 |
env_authorized_key: "{{guid}}key" |
|
57 |
ansible_ssh_private_key_file: ~/.ssh/{{key_name}}.pem |
|
58 |
set_env_authorized_key: true |
|
59 |
|
|
60 |
# Is this running from Red Hat Ansible Tower |
|
61 |
#tower_run: false |
|
62 |
|
|
63 |
### AWS EC2 Environment settings |
|
64 |
|
|
65 |
### Route 53 Zone ID (AWS) |
|
66 |
# This is the Route53 HostedZoneId where you will create your Public DNS entries |
|
67 |
# This only needs to be defined if your CF template uses route53 |
|
68 |
HostedZoneId: Z3IHLWJZOU9SRT |
|
69 |
# The region to be used, if not specified by -e in the command line |
|
70 |
aws_region: us-east-1 |
|
71 |
# The key that is used to |
|
72 |
key_name: "default_key_name" |
|
73 |
|
|
74 |
## Networking (AWS) |
|
75 |
subdomain_base_short: "{{ guid }}" |
|
76 |
subdomain_base_suffix: ".example.opentlc.com" |
|
77 |
subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}" |
|
78 |
|
|
79 |
## OCP 4 Environment Sizing |
|
80 |
|
|
81 |
clientvm_instance_type: "t2.medium" |
|
82 |
|
932f68
|
83 |
master_instance_type: "m4.xlarge" |
1874b6
|
84 |
master_instance_count: 3 |
801d55
|
85 |
master_storage_type: "gp2" |
8d2476
|
86 |
worker_instance_type: "m4.4xlarge" |
1874b6
|
87 |
worker_instance_count: 3 |
801d55
|
88 |
worker_storage_type: "gp2" |
1874b6
|
89 |
|
GC |
90 |
# Enable Default Workloads. REQUIRES Ansible 2.7+ on the deployer host |
43f335
|
91 |
default_workloads: |
1b376e
|
92 |
- ocp4-workload-infra-nodes |
606d8f
|
93 |
- ocp4-workload-project-request-template |
43f335
|
94 |
- ocp4-workload-enable-service-broker |
a300a5
|
95 |
- ocp4-workload-userquota-operator |
WK |
96 |
- ocp-workload-terminal |
8bd786
|
97 |
- ocp4-workload-logging |
db5452
|
98 |
#- ocp4-workload-template-service-broker |
WK |
99 |
#- ocp4-workload-automation-broker |
6acf71
|
100 |
#- ocp4-workload-enable-lets-encrypt-certificates |
a300a5
|
101 |
#- ocp4_workload-project-cleanup-operator |
1874b6
|
102 |
|
606d8f
|
103 |
# Variables for default workloads. Ultimately these will be parameters to the workloads but for now they are global |
WK |
104 |
_infra_node_replicas: 1 |
8d2476
|
105 |
_infra_node_instance_type: "m4.4xlarge" |
606d8f
|
106 |
_logging_use_infra_nodes: True |
WK |
107 |
_logging_elasticsearch_replicas: "{{ _infra_node_replicas }}" |
|
108 |
_logging_wait_for_deployment: False |
|
109 |
|
1874b6
|
110 |
###### VARIABLES YOU SHOULD ***NOT*** CONFIGURE FOR YOUR DEPLOYEMNT |
GC |
111 |
|
|
112 |
ansible_user: ec2-user |
|
113 |
remote_user: ec2-user |
|
114 |
|
|
115 |
common_packages: |
|
116 |
- python |
|
117 |
- unzip |
|
118 |
- bash-completion |
|
119 |
- tmux |
|
120 |
- bind-utils |
|
121 |
- wget |
|
122 |
- ansible |
|
123 |
- git |
|
124 |
- vim-enhanced |
|
125 |
- iptables-services |
|
126 |
- httpd-tools |
|
127 |
|
|
128 |
rhel_repos: |
|
129 |
- rhel-7-server-rpms |
|
130 |
- rhel-7-server-extras-rpms |
190660
|
131 |
- rhel-7-server-ansible-2.7-rpms |
1874b6
|
132 |
- rhel-7-server-optional-rpms |
GC |
133 |
|
|
134 |
# use_subscription_manager: false |
|
135 |
# use_own_repos: true |
|
136 |
# |
|
137 |
rhn_pool_id_string: OpenShift Container Platform |
|
138 |
|
|
139 |
### CLOUDFORMATIONS vars |
|
140 |
|
|
141 |
project_tag: "{{ env_type }}-{{ guid }}" |
|
142 |
|
|
143 |
zone_internal_dns: "{{guid}}.internal." |
|
144 |
chomped_zone_internal_dns: "{{guid}}.internal" |
|
145 |
|
|
146 |
bastion_public_dns: "bastion.{{subdomain_base}}." |
|
147 |
bastion_public_dns_chomped: "bastion.{{subdomain_base}}" |
|
148 |
vpcid_name_tag: "{{subdomain_base}}" |
|
149 |
|
|
150 |
az_1_name: "{{ aws_region }}a" |
|
151 |
az_2_name: "{{ aws_region }}b" |
|
152 |
|
|
153 |
# subnet_private_1_cidr_block: "192.168.2.0/24" |
|
154 |
# subnet_private_1_az: "{{ az_2_name }}" |
|
155 |
# subnet_private_1_name_tag: "{{subdomain_base}}-private" |
|
156 |
# |
|
157 |
# subnet_private_2_cidr_block: "192.168.1.0/24" |
|
158 |
# subnet_private_2_az: "{{ az_1_name }}" |
|
159 |
# subnet_private_2_name_tag: "{{subdomain_base}}-private" |
|
160 |
# |
|
161 |
# subnet_public_1_cidr_block: "192.168.10.0/24" |
|
162 |
# subnet_public_1_az: "{{ az_1_name }}" |
|
163 |
# subnet_public_1_name_tag: "{{subdomain_base}}-public" |
|
164 |
# |
|
165 |
# subnet_public_2_cidr_block: "192.168.20.0/24" |
|
166 |
# subnet_public_2_az: "{{ az_2_name }}" |
|
167 |
# subnet_public_2_name_tag: "{{subdomain_base}}-public" |
|
168 |
# |
|
169 |
# dopt_domain_name: "{{ aws_region }}.compute.internal" |
|
170 |
# |
|
171 |
# rtb_public_name_tag: "{{subdomain_base}}-public" |
|
172 |
# rtb_private_name_tag: "{{subdomain_base}}-private" |
|
173 |
# |
|
174 |
# cf_template_description: "{{ env_type }}-{{ guid }} template " |
|
175 |
|
|
176 |
# cloudformation_retries: 2 |
|
177 |
# ocp_report: false |
|
178 |
|
|
179 |
instances: |
|
180 |
- name: "clientvm" |
|
181 |
count: "{{num_users}}" |
|
182 |
unique: yes |
|
183 |
public_dns: true |
|
184 |
alt_name: bastion |
|
185 |
flavor: |
|
186 |
"ec2": "{{clientvm_instance_type}}" |
|
187 |
tags: |
|
188 |
- key: "AnsibleGroup" |
|
189 |
value: "bastions,clientvms" |
|
190 |
- key: "ostype" |
|
191 |
value: "linux" |
|
192 |
rootfs_size: 30 |
|
193 |
security_groups: |
|
194 |
- BastionSG |