Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - service.git.client |
| 3 | - system.linux.system.single |
| 4 | - system.linux.system.repo.mcp.salt |
| 5 | - system.linux.system.repo.mcp.openstack |
| 6 | - system.openssh.client.lab |
| 7 | - system.salt.master.api |
| 8 | - system.salt.master.pkg |
| 9 | - system.reclass.storage.salt |
| 10 | - system.salt.minion.ca.salt_master |
| 11 | - system.salt.minion.cert.proxy |
| 12 | - system.sphinx.server.doc.reclass |
| 13 | - system.keystone.client.core |
| 14 | - system.keystone.client.service.designate |
| 15 | - system.keystone.client.service.cinder |
| 16 | - system.keystone.client.service.cinder2 |
| 17 | - system.keystone.client.service.cinder3 |
| 18 | - system.keystone.client.service.glance |
| 19 | - system.keystone.client.service.glare |
| 20 | - system.keystone.client.service.heat |
| 21 | - system.keystone.client.service.heat-cfn |
| 22 | - system.keystone.client.service.keystone |
| 23 | - system.keystone.client.service.neutron |
| 24 | - system.keystone.client.service.nova-ec2 |
| 25 | - system.keystone.client.service.nova21 |
| 26 | - system.keystone.client.service.nova-placement |
| 27 | - system.mysql.client |
| 28 | - system.mysql.client.database.cinder |
| 29 | - system.mysql.client.database.glance |
| 30 | - system.mysql.client.database.heat |
| 31 | - system.mysql.client.database.keystone |
| 32 | - system.mysql.client.database.nova |
| 33 | - system.mysql.client.database.nova_api |
| 34 | - system.mysql.client.database.neutron |
| 35 | - system.reclass.storage.system.openstack_control_cluster |
| 36 | - system.reclass.storage.system.ceph_mon_cluster |
| 37 | - cluster.os-ha-ovs-ceph.openstack.proxy |
| 38 | - cluster.os-ha-ovs-ceph |
| 39 | parameters: |
| 40 | _param: |
| 41 | reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab |
| 42 | reclass_data_revision: master |
| 43 | salt_master_environment_repository: "https://github.com/tcpcloud" |
| 44 | salt_master_environment_revision: master |
| 45 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 46 | single_address: ${_param:infra_config_address} |
| 47 | salt_master_host: 127.0.0.1 |
| 48 | salt_master_base_environment: prd |
| 49 | salt_minion_ca_host: ${linux:network:fqdn} |
| 50 | salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1" |
| 51 | linux: |
| 52 | network: |
| 53 | interface: |
| 54 | ens4: |
| 55 | enabled: true |
| 56 | type: eth |
| 57 | proto: static |
| 58 | address: ${_param:single_address} |
| 59 | netmask: 255.255.255.0 |
| 60 | nginx: |
| 61 | server: |
| 62 | site: |
| 63 | nginx_proxy_openstack_web: |
| 64 | proxy: |
| 65 | host: ${_param:infra_config_address} |
| 66 | nginx_proxy_openstack_api_heat_cfn: |
| 67 | enabled: false |
| 68 | salt: |
| 69 | master: |
| 70 | reactor: |
| 71 | reclass/minion/classify: |
| 72 | - salt://reclass/reactor/node_register.sls |
| 73 | reclass: |
| 74 | storage: |
| 75 | class_mapping: |
| 76 | common_node: |
| 77 | expression: all |
| 78 | node_param: |
| 79 | single_address: |
| 80 | value_template: <<node_control_ip>> |
| 81 | linux_system_codename: |
| 82 | value_template: <<node_os>> |
| 83 | salt_master_host: |
| 84 | value_template: <<node_master_ip>> |
| 85 | infra_config: |
| 86 | expression: <<node_hostname>>__startswith__cfg |
| 87 | cluster_param: |
| 88 | infra_config_address: |
| 89 | value_template: <<node_control_ip>> |
| 90 | infra_config_deploy_address: |
| 91 | value_template: <<node_deploy_ip>> |
| 92 | cluster_domain: |
| 93 | value_template: <<node_domain>> |
| 94 | openstack_control01: |
| 95 | expression: <<node_hostname>>__equals__ctl01 |
| 96 | cluster_param: |
| 97 | openstack_control_node01_address: |
| 98 | value_template: <<node_control_ip>> |
| 99 | openstack_control02: |
| 100 | expression: <<node_hostname>>__equals__ctl02 |
| 101 | cluster_param: |
| 102 | openstack_control_node02_address: |
| 103 | value_template: <<node_control_ip>> |
| 104 | openstack_control03: |
| 105 | expression: <<node_hostname>>__equals__ctl03 |
| 106 | cluster_param: |
| 107 | openstack_control_node03_address: |
| 108 | value_template: <<node_control_ip>> |
| 109 | openstack_compute: |
| 110 | expression: <<node_hostname>>__startswith__cmp |
| 111 | node_class: |
| 112 | value_template: |
| 113 | - cluster.<<node_cluster>>.openstack.compute |
| 114 | node_param: |
| 115 | tenant_address: |
| 116 | value_template: <<node_tenant_ip>> |
| 117 | external_address: |
| 118 | value_template: <<node_external_ip>> |
| 119 | openstack_gateway: |
| 120 | expression: <<node_hostname>>__startswith__gtw |
| 121 | node_class: |
| 122 | value_template: |
| 123 | - cluster.<<node_cluster>>.openstack.gateway |
| 124 | node_param: |
| 125 | tenant_address: |
| 126 | value_template: <<node_tenant_ip>> |
| 127 | external_address: |
| 128 | value_template: <<node_external_ip>> |
| 129 | cluster_param: |
| 130 | openstack_gateway_node01_address: |
| 131 | value_template: <<node_control_ip>> |
| 132 | ceph_osd_node01: |
| 133 | expression: <<node_hostname>>__equals__osd01 |
| 134 | cluster_param: |
| 135 | ceph_osd_node01_address: |
| 136 | value_template: <<node_control_ip>> |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 137 | single_address: |
| 138 | value_template: <<node_control_ip>> |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 139 | ceph_osd_node02: |
| 140 | expression: <<node_hostname>>__equals__osd02 |
| 141 | cluster_param: |
| 142 | ceph_osd_node02_address: |
| 143 | value_template: <<node_control_ip>> |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 144 | single_address: |
| 145 | value_template: <<node_control_ip>> |
| 146 | ceph_osd_03: |
| 147 | expression: <<node_hostname>>__equals__osd2 |
| 148 | cluster_param: |
| 149 | ceph_osd_node03_address: |
| 150 | value_template: <<node_control_ip>> |
| 151 | single_address: |
| 152 | value_template: <<node_control_ip>> |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 153 | ceph_mon_node01: |
| 154 | expression: <<node_hostname>>__equals__cmn01 |
| 155 | cluster_param: |
| 156 | ceph_mon_node01_address: |
| 157 | value_template: <<node_control_ip>> |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 158 | single_address: |
| 159 | value_template: <<node_control_ip>> |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 160 | ceph_mon_node02: |
| 161 | expression: <<node_hostname>>__equals__cmn02 |
| 162 | cluster_param: |
| 163 | ceph_mon_node02_address: |
| 164 | value_template: <<node_control_ip>> |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 165 | single_address: |
| 166 | value_template: <<node_control_ip>> |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 167 | ceph_mon_node03: |
| 168 | expression: <<node_hostname>>__equals__cmn03 |
| 169 | cluster_param: |
| 170 | ceph_mon_node03_address: |
| 171 | value_template: <<node_control_ip>> |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 172 | single_address: |
| 173 | value_template: <<node_control_ip>> |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 174 | node: |
| 175 | openstack_control_node01: |
| 176 | classes: |
| 177 | - service.galera.master.cluster |
| 178 | params: |
| 179 | mysql_cluster_role: master |
| 180 | linux_system_codename: xenial |
| 181 | openstack_control_node02: |
| 182 | classes: |
| 183 | - service.galera.slave.cluster |
| 184 | params: |
| 185 | mysql_cluster_role: slave |
| 186 | linux_system_codename: xenial |
| 187 | openstack_control_node03: |
| 188 | classes: |
| 189 | - service.galera.slave.cluster |
| 190 | params: |
| 191 | mysql_cluster_role: slave |
| 192 | linux_system_codename: xenial |
| 193 | infra_storage_rack01: |
| 194 | name: osd0<<count>> |
| 195 | domain: ${_param:cluster_domain} |
| 196 | classes: |
| 197 | - cluster.${_param:cluster_name}.ceph.osd |
| 198 | repeat: |
Jiri Broulik | 9256773 | 2017-12-06 10:35:59 +0100 | [diff] [blame] | 199 | count: 3 |
Jiri Broulik | 3e2050c | 2017-12-01 13:40:11 +0100 | [diff] [blame] | 200 | start: 1 |
| 201 | digits: 1 |
| 202 | params: |
| 203 | ceph_crush_parent: |
| 204 | value: rack<<count>> |
| 205 | start: 1 |
| 206 | single_address: |
| 207 | value: ceph_osd_node<<count>>_address |
| 208 | start: 1 |
| 209 | digits: 2 |
| 210 | interpolate: true |