blob: 5f2994860b7e0b7c29487c36dfaee29e77fc1d57 [file] [log] [blame]
asledzinskiy159d7bf2017-06-12 15:25:21 +03001
2classes:
3 - system.linux.system.haveged
4 - system.glusterfs.client.cluster
5 - system.glusterfs.client.volume.aptly
Ilya Kharin04fe8f12017-06-27 14:06:40 +04006 - system.glusterfs.client.volume.devops_portal
7 - system.glusterfs.client.volume.elasticsearch
asledzinskiy159d7bf2017-06-12 15:25:21 +03008 - system.glusterfs.client.volume.gerrit
9 - system.glusterfs.client.volume.jenkins
Ilya Kharin04fe8f12017-06-27 14:06:40 +040010 - system.glusterfs.client.volume.mysql
asledzinskiy159d7bf2017-06-12 15:25:21 +030011 - system.glusterfs.client.volume.openldap
Ilya Kharin04fe8f12017-06-27 14:06:40 +040012 - system.glusterfs.client.volume.postgresql
13 - system.glusterfs.client.volume.pushkin
14 - system.glusterfs.client.volume.registry
15 - system.glusterfs.client.volume.rundeck
16 - system.glusterfs.client.volume.salt_pki
17 - system.glusterfs.client.volume.security_monkey
asledzinskiy159d7bf2017-06-12 15:25:21 +030018 #- system.glusterfs.client.volume.salt
19 # Docker
20 - system.docker.host
21
22 # Generate aptly-publisher config to use for jenkins slaves
23 - system.aptly.client.publisher
24
25 # Docker services
26 - system.docker.swarm.stack.aptly
Ilya Kharin04fe8f12017-06-27 14:06:40 +040027 - system.docker.swarm.stack.devops_portal
asledzinskiy159d7bf2017-06-12 15:25:21 +030028 - system.docker.swarm.stack.docker
Ilya Kharin04fe8f12017-06-27 14:06:40 +040029 - system.docker.swarm.stack.elasticsearch
asledzinskiy159d7bf2017-06-12 15:25:21 +030030 - system.docker.swarm.stack.gerrit
31 - system.docker.swarm.stack.jenkins
32 - system.docker.swarm.stack.ldap
Ilya Kharin04fe8f12017-06-27 14:06:40 +040033 - system.docker.swarm.stack.postgresql
34 - system.docker.swarm.stack.pushkin
35 - system.docker.swarm.stack.rundeck
36 - system.docker.swarm.stack.security_monkey
37 # Docker networks
38 - system.docker.swarm.network.runbook
asledzinskiy159d7bf2017-06-12 15:25:21 +030039
40 # Keepalived
41 - system.keepalived.cluster.instance.cicd_control_vip
42
43 # HAProxy
44 - system.salt.minion.cert.proxy.cicd
45 - system.haproxy.proxy.single
46 - system.haproxy.proxy.listen.cicd.aptly
47 - system.haproxy.proxy.listen.cicd.gerrit
48 - system.haproxy.proxy.listen.cicd.jenkins
49 - system.haproxy.proxy.listen.docker.registry
50 - system.haproxy.proxy.listen.docker.visualizer
51 - system.haproxy.proxy.listen.openldap
Ilya Kharin04fe8f12017-06-27 14:06:40 +040052 - system.haproxy.proxy.listen.oss.devops_portal
53 - system.haproxy.proxy.listen.oss.elasticsearch
54 - system.haproxy.proxy.listen.oss.postgresql
55 - system.haproxy.proxy.listen.oss.pushkin
56 - system.haproxy.proxy.listen.oss.rundeck
57 - system.haproxy.proxy.listen.oss.security_monkey
asledzinskiy159d7bf2017-06-12 15:25:21 +030058 - system.haproxy.proxy.listen.phpldapadmin
59 - system.haproxy.proxy.listen.mysql
60 - system.haproxy.proxy.listen.stats
61
Ilya Kharin04fe8f12017-06-27 14:06:40 +040062 # PostgreSQL
63 - system.postgresql.client.pushkin
64 - system.postgresql.client.rundeck
65 - system.postgresql.client.security_monkey
66
67 # DevOps Portal
68 - system.devops_portal.service.elasticsearch
69 - system.devops_portal.service.gerrit
70 - system.devops_portal.service.jenkins
71 - system.devops_portal.service.pushkin
72 - system.devops_portal.service.rundeck
73 - system.devops_portal.service.security_monkey
74
75 # Rundeck
76 - system.rundeck.client.runbook
77
asledzinskiy159d7bf2017-06-12 15:25:21 +030078 - cluster.virtual-mcp-ocata-cicd
79
80parameters:
81 _param:
82 cluster_node01_name: ${_param:cicd_control_node01_hostname}
83 cluster_node01_address: ${_param:cicd_control_node01_address}
84 cluster_node02_name: ${_param:cicd_control_node02_hostname}
85 cluster_node02_address: ${_param:cicd_control_node02_address}
86 cluster_node03_name: ${_param:cicd_control_node03_hostname}
87 cluster_node03_address: ${_param:cicd_control_node03_address}
88 keepalived_vip_virtual_router_id: 180
89 keepalived_vip_password: TLrAYaAbAEZwXsp1
90 keepalived_vip_interface: ens3
91 cluster_vip_address: ${_param:control_vip_address}
92 control_vip_address: ${_param:cicd_control_address}
93 cluster_public_host: ${_param:control_vip_address}
94 salt_api_password: Dnx3fapzHIcGuURdDck3DPv78V3ehwue
95 # Docker images and versions
96 docker_registry_http_secret: jvJRsYDEPts2HdNk
97 # CI/CD service databases
98 mysql_admin_password: TSi6AgDGv2nZjblQ
99 mysql_gerrit_password: f6XRcwSNHTh8zCuS
100
101 # Proxy
102 cluster_ssl_certificate:
103 enabled: true
104 pem_file: /etc/haproxy/ssl/${_param:cluster_public_host}-all.pem
105 haproxy_bind_address: ${_param:cluster_vip_address}
106 haproxy_mysql_source_port: 13306
107 salt_minion_ca_host: cfg01.${_param:cluster_domain}
108
109 # Aptly
110 aptly_gpg_keypair_id: none
111 aptly_gpg_passphrase: none
112 aptly_server_secure: false
113 aptly_gpg_public_key: none
114 aptly_gpg_private_key: none
Ilya Kharin04fe8f12017-06-27 14:06:40 +0400115
asledzinskiy159d7bf2017-06-12 15:25:21 +0300116 # OpenLDAP
117 openldap_organisation: "${_param:cluster_name}"
118 openldap_dn: "virtual-mcp-ocata-cicd,dc=local"
119 openldap_domain: "virtual-mcp-ocata-cicd.local"
120 openldap_admin_password: UdTuP7GPPTaCoPSV
121 openldap_config_password: RQK8h0F3aNdvv26U
122 openldap_readonly_password: myMSnD6mn8ziUP2S
123
Ilya Kharin04fe8f12017-06-27 14:06:40 +0400124 # PostgreSQL
125 postgresql_client_user: ${_param:postgresql_admin_user}
126 postgresql_client_password: ${_param:postgresql_admin_user_password}
127 postgresql_client_host: ${_param:haproxy_postgresql_bind_host}
128 postgresql_client_port: ${_param:haproxy_postgresql_bind_port}
129
asledzinskiy159d7bf2017-06-12 15:25:21 +0300130 # Jenkins
131 jenkins_slave_user: admin
132 jenkins_client_user: admin
133 jenkins_admin_password: ${_param:openldap_admin_password}
134 jenkins_security_ldap_server: ${_param:cluster_vip_address}
135 jenkins_security_ldap_root_dn: ${_param:openldap_dn}
136 jenkins_security_ldap_manager_dn: "cn=admin,${_param:openldap_dn}"
137 jenkins_security_ldap_manager_password: ${_param:openldap_admin_password}
138 jenkins_slave_password: ${_param:jenkins_admin_password}
139 jenkins_client_password: ${_param:jenkins_admin_password}
140 jenkins_admin_email: ${_param:admin_email}
141 jenkins_admin_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3PNQbFye7OC13h7esNT+LXtIKOZbmSmQdj2wrVW1nwFQBodgG2XFJUyKwVZ3gCqS68sN0kOzqix/R4oOL2lm1vZX69Mx3mON6fkvMdgpaEE78VH/SAiuUhCLP83Ic1QRp55uriZ0a1Pa91kqqXnqWLQX7NK4oTtps1sukxg+WVyT55jnwJ8F4a2HIgf+heZNunfw1NlQI6tGXwdiTON7agVybodtRQZctB3/6rQrxKFT9No5BYrEtt2sEg4xBl/XvhbBIyKmi2URgSOplpezGGJcVHTCddRRP0st4etsh39I8H0qzwWnufgYr1dGCr7AOt0grQOUaAKivjK/PV7IL
142 jenkins_admin_private_key: |
143 -----BEGIN RSA PRIVATE KEY-----
144 MIIEpQIBAAKCAQEAtzzUGxcnuzgtd4e3rDU/i17SCjmW5kpkHY9sK1VtZ8BUAaHY
145 BtlxSVMisFWd4AqkuvLDdJDs6osf0eKDi9pZtb2V+vTMd5jjen5LzHYKWhBO/FR/
146 0gIrlIQiz/NyHNUEaeebq4mdGtT2vdZKql56li0F+zSuKE7abNbLpMYPllck+eY5
147 8CfBeGthyIH/oXmTbp38NTZUCOrRl8HYkzje2oFcm6HbUUGXLQd/+q0K8ShU/TaO
148 QWKxLbdrBIOMQZf174WwSMipotlEYEjqZaXsxhiXFR0wnXUUT9LLeHrbId/SPB9K
149 s8Fp7n4GK9XRgq+wDrdIK0DlGgCor4yvz1eyCwIDAQABAoIBAB3a5Vw8m5afgpj1
150 HfILAv18R5Cu7W08Na+zTJaK5rZ+2bEiY4ZKK3EdAIv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35FZW2gpWvJLrBfO5vkXrA8JFhldW5LHr0
167 7xy+goivnFtD2rvCMNOVWdGT4yEftajz6vXsXLr2XQ8X3HH8O0BIqWyobguQs3t0
168 d4sWoM2Qt45r+B/UoLMPmkjtebmQe+gKbdv8rv+FWPAckc7L7MCkveA=
169 -----END RSA PRIVATE KEY-----
170 # Jobs params
171 jenkins_gerrit_url: ssh://admin@${_param:haproxy_gerrit_bind_host}:${_param:haproxy_gerrit_ssh_bind_port}
172 jenkins_aptly_api_url: http://${_param:haproxy_aptly_api_bind_host}:${_param:haproxy_aptly_api_bind_port}
173 jenkins_aptly_url: http://${_param:haproxy_aptly_public_bind_host}:${_param:haproxy_aptly_public_bind_port}
174 # Gerrit
175 gerrit_admin_password: ${_param:openldap_admin_password}
176 gerrit_admin_email: ${_param:admin_email}
177 gerrit_public_host: http://${_param:haproxy_gerrit_bind_host}:${_param:haproxy_gerrit_bind_port}
178 gerrit_admin_public_key: ${_param:jenkins_admin_public_key}
179 gerrit_admin_private_key: ${_param:jenkins_admin_private_key}
180 gerrit_auth_type: LDAP
181 gerrit_ldap_server: "ldap://${_param:cluster_vip_address}"
182 gerrit_ldap_bind_user: "cn=admin,${_param:openldap_dn}"
183 gerrit_ldap_bind_password: ${_param:openldap_admin_password}
184 gerrit_ldap_account_base: ou=people,${_param:openldap_dn}
185 gerrit_ldap_group_base: ou=groups,${_param:openldap_dn}
186
Ilya Kharin04fe8f12017-06-27 14:06:40 +0400187 # Rundeck
188 rundeck_cis_os_auth_url: http://172.16.10.254:5000/v3/auth/tokens
189 rundeck_cis_os_username: admin
190 rundeck_cis_os_password: workshop
191 rundeck_cis_os_project_name: admin
192 rundeck_runbook_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBPHRctBuN16hVe05HxKeN1AqPqbjvWvqQ1zcr/sbJJXHgVBTACRD6G+DAi7SSJr7dLzyeNo042szJclsH/qf9h0tcytINATzye//x6MtzXZ4YIDkcd1Yhz1LRgCXk1PvIensJAdClYOymx+SRaJxEEzbLxgqhSnYOUY3xVGbUrgfXI9+ZG9hs9zfq5JEMRjQay5p+xuYv/wCoU+pbFPDmsW0hQ99O+XBHcwrpU3crkImetTM2WfnRlBkoJypLv/HicTJtnL91/BWcebvW50oxrEq1QQ82T1Wl3pQsJw24M48fXyl/HbF2QVP6O1Ptqr3O7cIByxJWHih3paZncVEj
193 rundeck_runbook_private_key: |
194 -----BEGIN RSA PRIVATE KEY-----
195 MIIEpAIBAAKCAQEAwTx0XLQbjdeoVXtOR8SnjdQKj6m471r6kNc3K/7GySVx4FQU
196 wAkQ+hvgwIu0kia+3S88njaNONrMyXJbB/6n/YdLXMrSDQE88nv/8ejLc12eGCA5
197 HHdWIc9S0YAl5NT7yHp7CQHQpWDspsfkkWicRBM2y8YKoUp2DlGN8VRm1K4H1yPf
198 mRvYbPc36uSRDEY0GsuafsbmL/8AqFPqWxTw5rFtIUPfTvlwR3MK6VN3K5CJnrUz
199 Nln50ZQZKCcqS7/x4nEybZy/dfwVnHm71udKMaxKtUEPNk9Vpd6ULCcNuDOPH18p
200 fx2xdkFT+jtT7aq9zu3CAcsSVh4od6WmZ3FRIwIDAQABAoIBAQCsnUNY2G7Quzec
201 /KQFyi7eq+6vPK596ihwIEAhpdqPLkrWWGWc0bx/n02a0nGAKOpQjPS6ZAKtKg7L
202 WMLmll4cRLJWdrtCcLuv5ILS5uBu8s7ZwFckDZo8Y4YYrT+sdXFhOcAUYLGwOa/M
203 oD2WgvsseHl3eDZgtDJXQhTo4jtleW4/ZETmduUBx2djSfwx2vv8N6V7+5bH2kvL
204 3PgR3PYp1uD+dPDy00SwuiWDDwljubQzpres8K4ikIWWaU4/t9TUBv+PJt3Kbavi
205 0ca+jdpRdPCW4QmEhNT+D10B3DCN9uVt9leCrYzvcrT1ElqiL4ODBefG0clKq64d
206 Zc59IVypAoGBAO2PX2qApylv+uuVe2dscH10qUjgYIuXeszJYtSCiPbu7yMcuFWo
207 c6sqU2/l/4vdd8qeHvS75VPzmX2QfF9p1EsL+LE5tzc3m54WfJ884LLI+nx8ynKU
208 HrbaLCGCK09bLNXM7XkFTe9s+XrJzgqdff/rF2nZHHyoqPObSgaG//HnAoGBANA8
209 TusN74PUX4ABLwGCLEd4/qRa0kgFtwngrcUY9XMWhrJUqi9tKJLN2URhqTbOzFA0
210 qv3n6TgZQSVH4ojmgL8EElSU2qKjDQ/jk/kEr5A+sBLdzXWZWdGv/BdB2yn95JH4
211 qoD4E9PWkNwz+e6I5PivXrVVIA0PEZ2cthutR/dlAoGBAORHzvfoEzpliijSZ1h2
212 Qw67iWUngH8DnJSnvRnbKkSoTBJgqd5eVnCX5r/zs4Ky2kdRdQvWd0QaJVgc/Pcv
213 GjrXkS60+JPOEvNyRmU6ue3z5Yi03lIGdhFeS+QTUw0Z31bAaz7NUxwNixtsS1u2
214 Bftj7QbhBFfiNyCJDDSDi/XnAoGAbsd2sIO0ZSypNZ7rk+Ddj5Rl26fZcKlhq+aU
215 a2OQyI42UE7MTvjCef760+8kp1yywwSR5wvmPYrp5lxsvqnp2jTfT5H1Ekqt20MV
216 6Ic+ov1GjHLlJ+fSKcR21ySY5KkGXUWt53iSi8L9Q7h/ARBgx4/8UXmc2HWoyHGj
217 S+wOeiUCgYA2EMH3QOP+LewScNkdgDr9e20+NxmZs+b0ZOk6JAUE+/YLSNDlRQZV
218 fL0f0cjIyCdKfv+nR4gdMnm8RDHBiAqrKK3X9tiZ0fGmPHB+OLwYV8wE1u9jkJDA
219 IJA5GNU+Uj6+WbPO+hGn3NBWfb7/tR3ojSv7cBf2eEUh/vLSE9joKA==
220 -----END RSA PRIVATE KEY-----
221
222 # SecurityMonkey
223 security_monkey_openstack:
224 username: admin
225 password: workshop
226 auth_url: http://172.16.10.254:5000/v3/
227 project_name: admin
228
229
asledzinskiy159d7bf2017-06-12 15:25:21 +0300230 linux:
231 system:
232 package:
233 ca-certificates-java:
234 version: latest
235 network:
236 interface:
237 ens3:
238 enabled: true
239 type: eth
240 proto: static
241 address: ${_param:single_address}
242 netmask: 255.255.255.0