-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvars.yml-template
295 lines (272 loc) · 5.79 KB
/
vars.yml-template
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
newuser: ubuntu
sshd_allow_users: ubuntu
sshd_allow_groups: ubuntu
local_user: "TODO"
admin_vm_name: admin-vm
tld_hostname: "TODO"
timezone: "Europe/Paris"
env: admin
admin_mail: "admin@{{ tld_hostname }}"
top_dn: 'dc=TODO,dc=TODO'
mail:
domain: "{{ tld_hostname }}"
to: "admin@{{ tld_hostname }}"
user: "noreply@{{ tld_hostname }}"
pass: "TODO"
smtp_host: ssl0.ovh.net
smtp_port: 587
fail2ban:
# "ignoreip" can be an IP address, a CIDR mask or a DNS host
config_ignoreip: 127.0.0.1/8
config_bantime: 600
config_maxretry: 4
config_destemail: "admin@{{ tld_hostname }}"
# Jails
config_jail_ssh_enabled: yes
config_jail_sshddos_enabled: yes
monitoring:
db:
user: monitoring
pass: "PASSWORD"
datadog:
api_key: "TODO"
app_key: "TODO"
tags: admin
pgdb:
user: ddagent
pass: "PASSWORD"
notifiers:
- slack-mypaas
rundeck:
ip: rundeck
port: 4440
docker_image: captnbp/docker-rundeck
secret: "PASSWORD"
admin:
token: "PASSWORD"
pass: "PASSWORD"
db:
host: rundeck-mariadb
name: rundeck
user: rundeck
pass: "PASSWORD"
port: 5432
root_pass: "PASSWORD"
jenkins:
docker_image: jenkins
ip: jenkins
url: "jenkins.{{ tld_hostname }}"
port: 8080
user: "{{ ldap.users[0].uid }}"
password: "{{ ldap.users[0].password }}"
view: pipeline-view
#GITLAB WEBHOOK KEYS (generate it at the beginning)
gitlab_webhook_publickey: "ssh-rsa AAAAB3.................."
gitlab_webhook_privatekey: "-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAncbBynDRm7JGHDXd6oIR/cJ+lcbLNTIPE/d86lvoYvmbJMRA
................................................................
AyEHCm/Ekjc+yfSzijAS2L6P6Q3o+h9zcQUelG6V/GdT+gGdjex3tF4=
-----END RSA PRIVATE KEY-----"
#JENKINS SLAVE KEY : allow to provision a slave (for now on the admin-vm)
jenkins_slave_privatekey: "-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAybZRhdb2c/BCrvrmSSCD5nYPB+vtZtgw2IaEze6kEmDE3k5G
................................................................
ooHy+AnnTabzFQ+SsLvOPhs2jsbtkoiwV7y8wBEiP8T9nYlooBE=
-----END RSA PRIVATE KEY-----"
global_conf:
dest: "{{ jenkins_config_dest }}/"
# TO CHANGE
remote_user: "ubuntu"
# jenkins_home where configurations files will be copied
jenkins_config_dest: "/data/jenkins"
jenkins_jobs:
multibranch:
name: JavaDemoApp
file: "jobs/job_pipeline_multibranch.xml"
# workaround for variable in uri body : convert to json
key_body:
title: "deploy key"
key: "{{jenkins.gitlab_webhook_publickey}}"
_hack: null
#GIT PUSH KEY (generate it at the beginning)
key_body_push:
title: "git push key"
key: "ssh-rsa AAAAB3......"
_hack: null
slack:
team_domain: YOURCOMPANY
token: "TODO"
gitlab:
version: latest
db_version: latest
ip: gitlab
port: 80
db:
user: gitlab
pass: "PASSWORD"
name: gitlabhq_production
host: gitlab-postgres
postgres_pass: "PASSWORD"
secret_db_key_base: "PASSWORD"
secret_key_base: "PASSWORD"
secret_otp_key_base: "PASSWORD"
root_pass: "PASSWORD"
ldap:
organization: MY COMPANY
domain: "{{ tld_hostname }}"
top_dn: "{{ top_dn }}"
base_dn: 'ou=users,{{ top_dn }}'
base_users_dn: 'ou=users,{{ top_dn }}'
base_groups_dn: 'ou=groups,{{ top_dn }}'
bind_dn: 'cn=admin,{{ top_dn }}'
pass: "PASSWORD"
phpldapadmin_port: 80
phpldapadmin_ip: phpldapadmin
ip: ldap
port: 389
tls_port: 636
users:
- sn: Peter
givenName: Saluthugues
uid: peter
password: "PASSWORD"
uidNumber: 1001
gidNumber: 500
mail: peter.saluthugues@mypaas
- sn: Steven
givenName: Huguessalut
uid: steven
password: "PASSWORD"
uidNumber: 1002
gidNumber: 500
mail: steven.huguessalut@mypaas
vpn:
ssl:
country: FR
province: IDF
city: Paris
org: "{{ tld_hostname }}"
email: "admin@{{ tld_hostname }}"
ou: vpn
nextcloud:
docker_image: wonderfall/nextcloud:11.0
db:
user: nextcloud
pass: "PASSWORD"
host: nextcloud-mariadb
port: 3306
name: nextcloud
table_prefix: "sd56bh4XXXXXXXXX"
root_pass: "PASSWORD"
admin:
user: admin
pass: "PASSWORD"
ip: owncloud
port: 80
odoo:
db:
name: odoo
user: odoo
pass: "PASSWORD"
port: 5432
host: odoo-postgres
ip: odoo
port: 8069
cloud:
project: MYPAAS
region: GRA1
name: mypaas
sshkey:
publicKey: 'ssh-rsa AAAAB3'
public_key_file: /home/XXXXX/.ssh/id_rsa.pub
name: mypaas
vlans:
- name: devvlan
id: 1101
region: GRA1
cidr: "10.1.0.0/16"
start: 10.1.0.1
end: 10.1.255.254
- name: prodvlan
id: 1102
region: GRA1
cidr: "10.2.2.0/16"
start: 10.2.0.1
end: 10.2.255.254
- name: adminvlan
id: 1199
region: GRA1
cidr: "10.0.0.0/16"
start: 10.0.0.1
end: 10.0.255.254
admin:
name: admin-vm
flavor: sp-30-ssd
os: "Ubuntu 16.04"
key: mypaas
security_group: admin
nics:
- net-name: Ext-Net
- net-name: adminvlan
- net-name: devvlan
- net-name: prodvlan
udp:
- 1194
tcp:
- 22
- 80
- 443
- 8022
dev:
security_group: dev
flavor: sp-30-ssd
os: "Ubuntu 16.04"
key: mypaas
nics:
- net-name: Ext-Net
- net-name: devvlan
tcp:
- 22
- 80
- 443
udp:
prod:
security_group: prd
flavor: sp-30-ssd
os: "Ubuntu 16.04"
key: mypaas
nics:
- net-name: Ext-Net
- net-name: prodvlan
tcp:
- 22
- 80
- 443
udp:
cluster:
os: "Ubuntu 16.04"
key: mypaas
dns:
- 8.8.8.8
- 8.8.4.4
ovh:
application_key: "TODO"
application_secret: "TODO"
endpoint: ovh-eu
consumer_key: "TODO"
registry:
docker_image: registry:latest
ip: registry
port: 5000
user: admin
pass: "PASSWORD"
htpasswd_pass: "TODO"
os:
region: GRA1
container: docker_registry
backup:
path: /data/backup
encrypting_passphrase: "PASSWORD"
os:
region: GRA1
container: backup