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