Guillaume Coré
2019-04-05 932f68f927cedfa483fe7f3c1a95265b588380ca
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
28
932f68 29 # install openshift python modules on bastion
cdff19 30 install_k8s_modules: true
GC 31
1874b6 32 ## Automatically deploy ocp4 cluster using the installer
cdff19 33 install_ocp4: true
397be9 34 ocp4_installer_version: "v0.16.1"
1874b6 35 oc_client_version: "4.0.22"
GC 36 cluster_name: "cluster-{{ guid }}"
37
38 # Smoke tests
39 # if set to true, the playbook will fail if the smoke tests failed.
40 # if set to false, the smoke tests are just informative.
41 smoke_tests: false
42
43 ## Install Authentication.
44 ## Valid options are none, htpasswd, ldap (and maybe in the future sso)
45 ## For LDAP a bindPassword needs to be passed via the command line
46 install_idm: "none"
47 idm_ca_url: http://ipa.opentlc.com/ipa/config/ca.crt
48
49 ### If you want a Key Pair name created and injected into the hosts,
50 # set `set_env_authorized_key` to true and set the keyname in `env_authorized_key`
51 # you can use the key used to create the environment or use your own self generated key
52 # if you set "use_own_key" to false your PRIVATE key will be copied to the bastion. (This is {{key_name}})
53
54 use_own_key: true
55 env_authorized_key: "{{guid}}key"
56 ansible_ssh_private_key_file: ~/.ssh/{{key_name}}.pem
57 set_env_authorized_key: true
58
59 # Is this running from Red Hat Ansible Tower
60 #tower_run: false
61
62 ### AWS EC2 Environment settings
63
64 ### Route 53 Zone ID (AWS)
65 # This is the Route53 HostedZoneId where you will create your Public DNS entries
66 # This only needs to be defined if your CF template uses route53
67 HostedZoneId: Z3IHLWJZOU9SRT
68 # The region to be used, if not specified by -e in the command line
69 aws_region: us-east-1
70 # The key that is used to
71 key_name: "default_key_name"
72
73 ## Networking (AWS)
74 subdomain_base_short: "{{ guid }}"
75 subdomain_base_suffix: ".example.opentlc.com"
76 subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"
77
78 ## OCP 4 Environment Sizing
79
80 clientvm_instance_type: "t2.medium"
81
82 master_instance_type: "m4.xlarge"
83 master_instance_count: 3
932f68 84 worker_instance_type: "m4.2xlarge"
1874b6 85 worker_instance_count: 3
GC 86
87 # Enable Default Workloads. REQUIRES Ansible 2.7+ on the deployer host
932f68 88 default_workloads:
GC 89 - ocp4-workload-infra-nodes
1874b6 90 # - ocp4-workload-project-request-template
932f68 91 - ocp4-workload-enable-service-broker
GC 92 - ocp4-workload-template-service-broker
93 - ocp-workload-terminal
94 - ocp4-workload-automation-broker
95 - ocp4-workload-logging
96 #- ocp4-workload-enable-lets-encrypt-certificates
97 #- ocp4-workload-userquota-operator
1874b6 98
GC 99 ###### VARIABLES YOU SHOULD ***NOT*** CONFIGURE FOR YOUR DEPLOYEMNT
100
101 ansible_user: ec2-user
102 remote_user: ec2-user
103
104 common_packages:
105   - python
106   - unzip
107   - bash-completion
108   - tmux
109   - bind-utils
110   - wget
111   - ansible
112   - git
113   - vim-enhanced
114   - iptables-services
115   - httpd-tools
116
117 rhel_repos:
118   - rhel-7-server-rpms
119   - rhel-7-server-extras-rpms
120   - rhel-7-server-ansible-2.6-rpms
121   - rhel-7-server-optional-rpms
122
123 # use_subscription_manager: false
124 # use_own_repos: true
125 #
126 rhn_pool_id_string: OpenShift Container Platform
127
128 ### CLOUDFORMATIONS vars
129
130 project_tag: "{{ env_type }}-{{ guid }}"
131
132 zone_internal_dns: "{{guid}}.internal."
133 chomped_zone_internal_dns: "{{guid}}.internal"
134
135 bastion_public_dns: "bastion.{{subdomain_base}}."
136 bastion_public_dns_chomped: "bastion.{{subdomain_base}}"
137 vpcid_name_tag: "{{subdomain_base}}"
138
139 az_1_name: "{{ aws_region }}a"
140 az_2_name: "{{ aws_region }}b"
141
142 # subnet_private_1_cidr_block: "192.168.2.0/24"
143 # subnet_private_1_az: "{{ az_2_name }}"
144 # subnet_private_1_name_tag: "{{subdomain_base}}-private"
145 #
146 # subnet_private_2_cidr_block: "192.168.1.0/24"
147 # subnet_private_2_az: "{{ az_1_name }}"
148 # subnet_private_2_name_tag: "{{subdomain_base}}-private"
149 #
150 # subnet_public_1_cidr_block: "192.168.10.0/24"
151 # subnet_public_1_az: "{{ az_1_name }}"
152 # subnet_public_1_name_tag: "{{subdomain_base}}-public"
153 #
154 # subnet_public_2_cidr_block: "192.168.20.0/24"
155 # subnet_public_2_az: "{{ az_2_name }}"
156 # subnet_public_2_name_tag: "{{subdomain_base}}-public"
157 #
158 # dopt_domain_name: "{{ aws_region }}.compute.internal"
159 #
160 # rtb_public_name_tag: "{{subdomain_base}}-public"
161 # rtb_private_name_tag: "{{subdomain_base}}-private"
162 #
163 # cf_template_description: "{{ env_type }}-{{ guid }} template "
164
165 # cloudformation_retries: 2
166 # ocp_report: false
167
168 instances:
169   - name: "clientvm"
170     count: "{{num_users}}"
171     unique: yes
172     public_dns: true
173     alt_name: bastion
174     flavor:
175       "ec2": "{{clientvm_instance_type}}"
176     tags:
177       - key: "AnsibleGroup"
178         value: "bastions,clientvms"
179       - key: "ostype"
180         value: "linux"
181     rootfs_size: 30
182     security_groups:
183       - BastionSG