Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 1 | classes: |
Martin Polreich | 1ee2e09 | 2017-08-10 16:06:57 +0200 | [diff] [blame] | 2 | - system.docker.client |
| 3 | - system.docker.host |
azvyagintsev | 2859f0e | 2018-06-11 17:45:47 +0300 | [diff] [blame] | 4 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
Martin Polreich | a0addcc | 2018-06-25 11:32:52 +0200 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
Richard Felkl | 0425002 | 2017-10-20 13:55:43 +0200 | [diff] [blame] | 6 | - system.linux.system.repo.docker |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 7 | - system.openssh.client.lab |
| 8 | - system.salt.master.pkg |
| 9 | - system.salt.minion.ca.salt_master |
| 10 | - system.salt.master.api |
| 11 | - system.reclass.storage.salt |
Sergey Kolekonov | 41ffdfa | 2018-10-30 19:47:23 +0000 | [diff] [blame^] | 12 | - system.salt.minion.cert.k8s_server |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 13 | - system.reclass.storage.system.kubernetes_control_cluster |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 14 | #- system.reclass.storage.system.opencontrail_control_cluster |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 15 | - cluster.sl-k8s-contrail |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 16 | parameters: |
| 17 | _param: |
| 18 | salt_master_base_environment: prd |
| 19 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 20 | reclass_data_revision: master |
| 21 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 22 | single_address: ${_param:infra_config_address} |
| 23 | linux_system_codename: xenial |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 24 | opencontrail_control_system_codename: trusty |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 25 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 26 | salt_master_host: ${_param:infra_config_deploy_address} |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 27 | salt: |
| 28 | master: |
| 29 | reactor: |
| 30 | reclass/minion/classify: |
| 31 | - salt://reclass/reactor/node_register.sls |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 32 | reclass: |
| 33 | storage: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 34 | class_mapping: |
| 35 | common_node: |
| 36 | expression: all |
| 37 | node_param: |
| 38 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 39 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 40 | linux_system_codename: |
| 41 | value_template: <<node_os>> |
| 42 | salt_master_host: |
| 43 | value_template: <<node_master_ip>> |
| 44 | infra_config: |
| 45 | expression: <<node_hostname>>__startswith__cfg |
| 46 | cluster_param: |
| 47 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 48 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 49 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 50 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 51 | cluster_domain: |
| 52 | value_template: <<node_domain>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 53 | kubernetes_control01: |
| 54 | expression: <<node_hostname>>__equals__ctl01 |
| 55 | cluster_param: |
| 56 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 57 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 58 | kubernetes_control02: |
| 59 | expression: <<node_hostname>>__equals__ctl02 |
| 60 | cluster_param: |
| 61 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 62 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 63 | kubernetes_control03: |
| 64 | expression: <<node_hostname>>__equals__ctl03 |
| 65 | cluster_param: |
| 66 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 67 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 68 | opencontrail_control01: |
| 69 | expression: <<node_hostname>>__equals__ntw01 |
| 70 | cluster_param: |
| 71 | opencontrail_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 72 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 73 | opencontrail_control02: |
| 74 | expression: <<node_hostname>>__equals__ntw02 |
| 75 | cluster_param: |
| 76 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 77 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 78 | opencontrail_control03: |
| 79 | expression: <<node_hostname>>__equals__ntw03 |
| 80 | cluster_param: |
| 81 | opencontrail_control_node03_address: |
| 82 | value_template: <<node_ip> |
| 83 | kubernetes_proxy: |
| 84 | expression: <<node_hostname>>__equals__prx01 |
| 85 | cluster_param: |
| 86 | kubernetes_proxy_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 87 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 88 | stacklight_monitor_node01: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 89 | expression: <<node_hostname>>__equals__mon01 |
| 90 | cluster_param: |
Olivier Bourdon | 1ad864b | 2017-09-06 14:09:15 +0200 | [diff] [blame] | 91 | stacklight_monitor_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 92 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 93 | stacklight_monitor_node02: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 94 | expression: <<node_hostname>>__equals__mon02 |
| 95 | cluster_param: |
Olivier Bourdon | 1ad864b | 2017-09-06 14:09:15 +0200 | [diff] [blame] | 96 | stacklight_monitor_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 97 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 98 | stacklight_monitor_node03: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 99 | expression: <<node_hostname>>__equals__mon03 |
| 100 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 101 | stacklight_monitor_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 102 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 103 | kubernetes_compute: |
| 104 | expression: <<node_hostname>>__startswith__cmp |
| 105 | node_class: |
| 106 | value_template: |
| 107 | - cluster.<<node_cluster>>.kubernetes.compute |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 108 | prx_node: |
| 109 | name: ${_param:kubernetes_proxy_node01_hostname} |
| 110 | domain: ${_param:cluster_domain} |
| 111 | classes: |
| 112 | - cluster.${_param:cluster_name}.stacklight.proxy |
| 113 | params: |
| 114 | salt_master_host: ${_param:infra_config_deploy_address} |
| 115 | linux_system_codename: xenial |
| 116 | single_address: ${_param:kubernetes_proxy_node01_address} |
Adam Tengler | 106a9b7 | 2017-09-27 14:21:30 +0200 | [diff] [blame] | 117 | stacklight_server_node01: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 118 | name: ${_param:stacklight_monitor_node01_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 119 | domain: ${_param:cluster_domain} |
| 120 | classes: |
| 121 | - service.galera.master.cluster |
| 122 | - system.docker.swarm.master |
| 123 | - cluster.${_param:cluster_name}.stacklight.client |
| 124 | - cluster.${_param:cluster_name}.stacklight.server |
| 125 | params: |
| 126 | salt_master_host: ${_param:infra_config_deploy_address} |
| 127 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 128 | single_address: ${_param:stacklight_monitor_node01_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 129 | keepalived_vip_priority: 100 |
| 130 | mysql_cluster_role: master |
Adam Tengler | 106a9b7 | 2017-09-27 14:21:30 +0200 | [diff] [blame] | 131 | stacklight_server_node02: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 132 | name: ${_param:stacklight_monitor_node02_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 133 | domain: ${_param:cluster_domain} |
| 134 | classes: |
| 135 | - service.galera.slave.cluster |
| 136 | - system.docker.swarm.manager |
| 137 | - cluster.${_param:cluster_name}.stacklight.server |
| 138 | params: |
| 139 | salt_master_host: ${_param:infra_config_deploy_address} |
| 140 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 141 | single_address: ${_param:stacklight_monitor_node02_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 142 | keepalived_vip_priority: 101 |
| 143 | mysql_cluster_role: slave |
Adam Tengler | 106a9b7 | 2017-09-27 14:21:30 +0200 | [diff] [blame] | 144 | stacklight_server_node03: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 145 | name: ${_param:stacklight_monitor_node03_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 146 | domain: ${_param:cluster_domain} |
| 147 | classes: |
| 148 | - service.galera.slave.cluster |
| 149 | - system.docker.swarm.manager |
| 150 | - cluster.${_param:cluster_name}.stacklight.server |
| 151 | params: |
| 152 | salt_master_host: ${_param:infra_config_deploy_address} |
| 153 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 154 | single_address: ${_param:stacklight_monitor_node03_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 155 | keepalived_vip_priority: 102 |
| 156 | mysql_cluster_role: slave |
| 157 | opencontrail_control_node01: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 158 | name: ${_param:opencontrail_control_node01_hostname} |
| 159 | domain: ${_param:cluster_domain} |
| 160 | classes: |
| 161 | - cluster.${_param:cluster_name}.opencontrail.control |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 162 | params: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 163 | salt_master_host: ${_param:reclass_config_master} |
| 164 | linux_system_codename: ${_param:opencontrail_control_system_codename} |
| 165 | single_address: ${_param:opencontrail_control_node01_address} |
| 166 | keepalived_vip_priority: 103 |
| 167 | opencontrail_database_id: 1 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 168 | rabbitmq_cluster_role: master |
| 169 | opencontrail_control_node02: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 170 | name: ${_param:opencontrail_control_node02_hostname} |
| 171 | domain: ${_param:cluster_domain} |
| 172 | classes: |
| 173 | - cluster.${_param:cluster_name}.opencontrail.control |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 174 | params: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 175 | salt_master_host: ${_param:reclass_config_master} |
| 176 | linux_system_codename: ${_param:opencontrail_control_system_codename} |
| 177 | single_address: ${_param:opencontrail_control_node02_address} |
| 178 | keepalived_vip_priority: 102 |
| 179 | opencontrail_database_id: 2 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 180 | rabbitmq_cluster_role: slave |
| 181 | opencontrail_control_node03: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 182 | name: ${_param:opencontrail_control_node03_hostname} |
| 183 | domain: ${_param:cluster_domain} |
| 184 | classes: |
| 185 | - cluster.${_param:cluster_name}.opencontrail.control |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 186 | params: |
Petr Michalec | 4d36637 | 2017-09-18 13:54:53 +0200 | [diff] [blame] | 187 | salt_master_host: ${_param:reclass_config_master} |
| 188 | linux_system_codename: ${_param:opencontrail_control_system_codename} |
| 189 | single_address: ${_param:opencontrail_control_node03_address} |
| 190 | keepalived_vip_priority: 101 |
| 191 | opencontrail_database_id: 3 |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 192 | rabbitmq_cluster_role: slave |