Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.git.client |
| 3 | - system.linux.system.single |
Tatyana Leontovich | c07941e | 2018-03-20 16:04:15 +0200 | [diff] [blame] | 4 | - system.linux.system.single.debian |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.salt |
| 6 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
| 7 | - system.linux.system.repo.mcp.apt_mirantis.openstack |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 8 | - system.salt.master.pkg |
Dennis Dmitriev | 6635bfd | 2018-03-20 04:50:12 +0200 | [diff] [blame] | 9 | - system.salt.master.api |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 10 | - system.reclass.storage.salt |
| 11 | - system.reclass.storage.system.ceph_mon_cluster |
| 12 | - system.reclass.storage.system.ceph_rgw_cluster |
| 13 | - system.salt.minion.ca.salt_master |
| 14 | - system.salt.minion.cert.proxy |
| 15 | - system.sphinx.server.doc.reclass |
| 16 | - system.keystone.client.single |
| 17 | - system.keystone.client.service.aodh |
| 18 | - system.keystone.client.service.ceilometer |
| 19 | - system.keystone.client.service.nova21 |
| 20 | - system.keystone.client.service.nova-placement |
| 21 | - system.keystone.client.service.glare |
| 22 | - system.keystone.client.service.cinder3 |
| 23 | - system.keystone.client.service.radosgw-swift |
| 24 | - system.mysql.client.single |
| 25 | - system.reclass.storage.system.openstack_control_cluster |
| 26 | - system.reclass.storage.system.openstack_compute_multi |
| 27 | - system.reclass.storage.system.openstack_gateway_single |
| 28 | - system.reclass.storage.system.openstack_dashboard_single |
| 29 | - system.reclass.storage.system.stacklightv2_server_cluster |
Tatyana Leontovich | 15b38e8 | 2018-01-11 13:06:38 +0200 | [diff] [blame] | 30 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.openstack.proxy |
| 31 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.stacklight.proxy |
Tatyana Leontovich | c22638a | 2018-06-04 22:11:49 +0300 | [diff] [blame] | 32 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.infra.backup.client_common |
Tatyana Leontovich | 15b38e8 | 2018-01-11 13:06:38 +0200 | [diff] [blame] | 33 | - cluster.virtual-mcp-pike-dvr-ceph-rgw |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 34 | parameters: |
| 35 | _param: |
| 36 | reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab |
| 37 | reclass_data_revision: master |
| 38 | salt_master_environment_repository: "https://github.com/tcpcloud" |
| 39 | salt_master_environment_revision: master |
| 40 | salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1" |
| 41 | reclass_config_master: 192.168.10.90 |
| 42 | single_address: 172.16.10.100 |
| 43 | salt_master_host: 127.0.0.1 |
| 44 | salt_master_base_environment: prd |
| 45 | salt_minion_ca_host: ${linux:network:fqdn} |
| 46 | linux: |
| 47 | network: |
| 48 | interface: |
| 49 | ens4: |
| 50 | enabled: true |
| 51 | type: eth |
| 52 | proto: static |
| 53 | address: ${_param:single_address} |
| 54 | netmask: 255.255.255.0 |
| 55 | nginx: |
| 56 | server: |
| 57 | site: |
| 58 | nginx_proxy_openstack_web: |
| 59 | proxy: |
| 60 | host: ${_param:openstack_proxy_address} |
| 61 | nginx_proxy_openstack_api_heat_cfn: |
| 62 | enabled: false |
| 63 | salt: |
| 64 | master: |
Tatyana Leontovich | c22638a | 2018-06-04 22:11:49 +0300 | [diff] [blame] | 65 | backup: true |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 66 | reactor: |
| 67 | reclass/minion/classify: |
| 68 | - salt://reclass/reactor/node_register.sls |
Tatyana Leontovich | c22638a | 2018-06-04 22:11:49 +0300 | [diff] [blame] | 69 | minion: |
| 70 | backup: true |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 71 | reclass: |
| 72 | storage: |
| 73 | class_mapping: |
| 74 | common_node: |
| 75 | expression: all |
| 76 | node_param: |
| 77 | single_address: |
| 78 | value_template: <<node_control_ip>> |
| 79 | linux_system_codename: |
| 80 | value_template: <<node_os>> |
| 81 | salt_master_host: |
| 82 | value_template: <<node_master_ip>> |
| 83 | infra_config: |
| 84 | expression: <<node_hostname>>__startswith__cfg |
| 85 | cluster_param: |
| 86 | infra_config_address: |
| 87 | value_template: <<node_control_ip>> |
| 88 | infra_config_deploy_address: |
| 89 | value_template: <<node_deploy_ip>> |
| 90 | cluster_domain: |
| 91 | value_template: <<node_domain>> |
| 92 | openstack_control01: |
| 93 | expression: <<node_hostname>>__equals__ctl01 |
| 94 | cluster_param: |
| 95 | openstack_control_node01_address: |
| 96 | value_template: <<node_control_ip>> |
| 97 | openstack_control02: |
| 98 | expression: <<node_hostname>>__equals__ctl02 |
| 99 | cluster_param: |
| 100 | openstack_control_node02_address: |
| 101 | value_template: <<node_control_ip>> |
| 102 | openstack_control03: |
| 103 | expression: <<node_hostname>>__equals__ctl03 |
| 104 | cluster_param: |
| 105 | openstack_control_node03_address: |
| 106 | value_template: <<node_control_ip>> |
| 107 | openstack_compute: |
| 108 | expression: <<node_hostname>>__startswith__cmp |
| 109 | node_class: |
| 110 | value_template: |
| 111 | - cluster.<<node_cluster>>.openstack.compute |
| 112 | node_param: |
| 113 | tenant_address: |
| 114 | value_template: <<node_tenant_ip>> |
| 115 | external_address: |
| 116 | value_template: <<node_external_ip>> |
| 117 | openstack_gateway: |
| 118 | expression: <<node_hostname>>__startswith__gtw |
| 119 | node_class: |
| 120 | value_template: |
| 121 | - cluster.<<node_cluster>>.openstack.gateway |
| 122 | node_param: |
| 123 | tenant_address: |
| 124 | value_template: <<node_tenant_ip>> |
| 125 | external_address: |
| 126 | value_template: <<node_external_ip>> |
| 127 | cluster_param: |
| 128 | openstack_gateway_node01_address: |
| 129 | value_template: <<node_control_ip>> |
| 130 | stacklight_monitor_node01: |
| 131 | expression: <<node_hostname>>__equals__mon01 |
| 132 | cluster_param: |
| 133 | stacklight_monitor_node01_address: |
| 134 | value_template: <<node_control_ip>> |
| 135 | stacklight_monitor_node02: |
| 136 | expression: <<node_hostname>>__equals__mon02 |
| 137 | cluster_param: |
| 138 | stacklight_monitor_node02_address: |
| 139 | value_template: <<node_control_ip>> |
| 140 | stacklight_monitor_node03: |
| 141 | expression: <<node_hostname>>__equals__mon03 |
| 142 | cluster_param: |
| 143 | stacklight_monitor_node03_address: |
| 144 | value_template: <<node_control_ip>> |
| 145 | ceph_osd_node01: |
| 146 | expression: <<node_hostname>>__equals__osd01 |
| 147 | cluster_param: |
| 148 | ceph_osd_node01_address: |
| 149 | value_template: <<node_control_ip>> |
| 150 | ceph_osd_node02: |
| 151 | expression: <<node_hostname>>__equals__osd02 |
| 152 | cluster_param: |
| 153 | ceph_osd_node02_address: |
| 154 | value_template: <<node_control_ip>> |
| 155 | ceph_mon_node01: |
| 156 | expression: <<node_hostname>>__equals__cmn01 |
| 157 | cluster_param: |
| 158 | ceph_mon_node01_address: |
| 159 | value_template: <<node_control_ip>> |
| 160 | ceph_mon_node02: |
| 161 | expression: <<node_hostname>>__equals__cmn02 |
| 162 | cluster_param: |
| 163 | ceph_mon_node02_address: |
| 164 | value_template: <<node_control_ip>> |
| 165 | ceph_mon_node03: |
| 166 | expression: <<node_hostname>>__equals__cmn03 |
| 167 | cluster_param: |
| 168 | ceph_mon_node03_address: |
| 169 | value_template: <<node_control_ip>> |
| 170 | ceph_rgw_node01: |
| 171 | expression: <<node_hostname>>__equals__rgw01 |
| 172 | cluster_param: |
| 173 | ceph_rgw_node01_address: |
| 174 | value_template: <<node_control_ip>> |
| 175 | ceph_rgw_node02: |
| 176 | expression: <<node_hostname>>__equals__rgw02 |
| 177 | cluster_param: |
| 178 | ceph_rgw_node02_address: |
| 179 | value_template: <<node_control_ip>> |
| 180 | ceph_rgw_node03: |
Petr Michalec | 0528f29 | 2018-04-05 11:00:26 +0200 | [diff] [blame] | 181 | expression: <<node_hostname>>__equals__rgw03 |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 182 | cluster_param: |
| 183 | ceph_rgw_node03_address: |
| 184 | value_template: <<node_control_ip>> |
| 185 | openstack_dashboard: |
| 186 | expression: <<node_hostname>>__startswith__prx |
| 187 | node_class: |
| 188 | value_template: |
| 189 | - cluster.<<node_cluster>>.openstack.dashboard |
| 190 | - cluster.<<node_cluster>>.openstack.proxy |
| 191 | cluster_param: |
| 192 | openstack_proxy_node01_address: |
| 193 | value_template: <<node_control_ip>> |
| 194 | node: |
| 195 | openstack_control_node01: |
| 196 | classes: |
Tatyana Leontovich | c22638a | 2018-06-04 22:11:49 +0300 | [diff] [blame] | 197 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.infra.backup.client_mysql |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 198 | - service.galera.master.cluster |
| 199 | params: |
| 200 | mysql_cluster_role: master |
| 201 | linux_system_codename: xenial |
| 202 | openstack_control_node02: |
| 203 | classes: |
| 204 | - service.galera.slave.cluster |
| 205 | params: |
| 206 | mysql_cluster_role: slave |
| 207 | linux_system_codename: xenial |
| 208 | openstack_control_node03: |
| 209 | classes: |
Tatyana Leontovich | c22638a | 2018-06-04 22:11:49 +0300 | [diff] [blame] | 210 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.infra.backup.server |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 211 | - service.galera.slave.cluster |
| 212 | params: |
| 213 | mysql_cluster_role: slave |
| 214 | linux_system_codename: xenial |
| 215 | stacklight_server_node01: |
| 216 | classes: |
| 217 | - system.influxdb.server.single |
| 218 | - system.influxdb.database.stacklight |
| 219 | openstack_compute_node01: |
| 220 | params: |
| 221 | single_address: 172.16.10.105 |
| 222 | tenant_address: 10.1.0.105 |
| 223 | external_address: 10.16.0.105 |
| 224 | openstack_compute_node02: |
| 225 | params: |
| 226 | single_address: 172.16.10.106 |
| 227 | tenant_address: 10.1.0.106 |
| 228 | external_address: 10.16.0.106 |
| 229 | openstack_gateway_node01: |
| 230 | params: |
| 231 | tenant_address: 10.1.0.110 |
| 232 | external_address: 10.16.0.110 |
| 233 | openstack_proxy_node01: |
| 234 | classes: |
Tatyana Leontovich | 15b38e8 | 2018-01-11 13:06:38 +0200 | [diff] [blame] | 235 | - cluster.virtual-mcp-pike-dvr-ceph-rgw.openstack.proxy |
Tatyana Leontovich | 8ac23e5 | 2017-12-08 20:06:46 +0200 | [diff] [blame] | 236 | params: |
| 237 | linux_system_codename: xenial |
| 238 | infra_storage_rack01: |
| 239 | name: osd0<<count>> |
| 240 | domain: ${_param:cluster_domain} |
| 241 | classes: |
| 242 | - cluster.${_param:cluster_name}.ceph.osd |
| 243 | repeat: |
| 244 | count: 2 |
| 245 | start: 1 |
| 246 | digits: 1 |
| 247 | params: |
| 248 | ceph_crush_parent: |
| 249 | value: rack<<count>> |
| 250 | start: 1 |
| 251 | single_address: |
| 252 | value: ceph_osd_node<<count>>_address |
| 253 | start: 1 |
| 254 | digits: 2 |
| 255 | interpolate: true |
| 256 | params: |
| 257 | salt_master_host: ${_param:reclass_config_master} |
| 258 | linux_system_codename: xenial |