Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 1 | classes: |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 2 | - system.linux.system.single |
| 3 | - system.linux.system.single.debian |
| 4 | - system.linux.system.repo.mcp.salt |
Tatyana Leontovich | c11c1b5 | 2018-01-26 13:58:39 +0200 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
| 6 | - system.linux.system.repo.mcp.apt_mirantis.saltstack_2016_3 |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +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.salt.minion.cert.k8s_server |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 12 | - system.mysql.client |
| 13 | - system.mysql.client.database.grafana |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 14 | - system.reclass.storage.salt |
| 15 | - system.reclass.storage.system.kubernetes_control_cluster |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 16 | - system.sphinx.server.doc.reclass |
Dmitry Kalashnik | 1085a99 | 2017-09-08 16:39:21 +0400 | [diff] [blame] | 17 | - cluster.virtual-mcp11-k8s-calico.stacklight.proxy |
| 18 | - cluster.virtual-mcp11-k8s-calico |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 19 | parameters: |
| 20 | _param: |
| 21 | salt_master_base_environment: prd |
Tomáš Kukrál | 8c25ac9 | 2017-04-27 22:46:12 +0200 | [diff] [blame] | 22 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab.git" |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 23 | reclass_data_revision: master |
| 24 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 25 | single_address: ${_param:infra_config_address} |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 26 | deploy_address: ${_param:infra_config_deploy_address} |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 27 | linux_system_codename: xenial |
| 28 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 29 | salt_master_host: ${_param:infra_config_deploy_address} |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 30 | salt: |
| 31 | master: |
| 32 | reactor: |
| 33 | reclass/minion/classify: |
| 34 | - salt://reclass/reactor/node_register.sls |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 35 | reclass: |
| 36 | storage: |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 37 | class_mapping: |
| 38 | common_node: |
| 39 | expression: all |
| 40 | node_param: |
| 41 | single_address: |
| 42 | value_template: <<node_control_ip>> |
| 43 | linux_system_codename: |
| 44 | value_template: <<node_os>> |
| 45 | salt_master_host: |
| 46 | value_template: <<node_master_ip>> |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 47 | deploy_address: |
| 48 | value_template: <<node_deploy_ip>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 49 | infra_config: |
| 50 | expression: <<node_hostname>>__equals__cfg01 |
| 51 | cluster_param: |
| 52 | infra_config_address: |
| 53 | value_template: <<node_control_ip>> |
| 54 | infra_config_deploy_address: |
| 55 | value_template: <<node_deploy_ip>> |
Dmitry Kalashnik | 1085a99 | 2017-09-08 16:39:21 +0400 | [diff] [blame] | 56 | cluster_domain: |
| 57 | value_template: <<node_domain>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 58 | infra_proxy: |
| 59 | expression: <<node_hostname>>__startswith__prx |
| 60 | node_class: |
| 61 | value_template: |
| 62 | - cluster.<<node_cluster>>.stacklight.proxy |
| 63 | kubernetes_control01: |
| 64 | expression: <<node_hostname>>__equals__ctl01 |
| 65 | cluster_param: |
| 66 | kubernetes_control_node01_address: |
| 67 | value_template: <<node_control_ip>> |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 68 | kubernetes_control_node01_deploy_address: |
| 69 | value_template: <<node_deploy_ip>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 70 | kubernetes_control02: |
| 71 | expression: <<node_hostname>>__equals__ctl02 |
| 72 | cluster_param: |
| 73 | kubernetes_control_node02_address: |
| 74 | value_template: <<node_control_ip>> |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 75 | kubernetes_control_node02_deploy_address: |
| 76 | value_template: <<node_deploy_ip>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 77 | kubernetes_control03: |
| 78 | expression: <<node_hostname>>__equals__ctl03 |
| 79 | cluster_param: |
| 80 | kubernetes_control_node03_address: |
| 81 | value_template: <<node_control_ip>> |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 82 | kubernetes_control_node03_deploy_address: |
| 83 | value_template: <<node_deploy_ip>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 84 | kubernetes_compute: |
| 85 | expression: <<node_hostname>>__startswith__cmp |
| 86 | node_class: |
| 87 | value_template: |
| 88 | - cluster.<<node_cluster>>.kubernetes.compute |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 89 | node_param: |
| 90 | deploy_address: |
| 91 | value_template: <<node_deploy_ip>> |
Jiri Broulik | 432ae9c | 2017-08-17 10:24:23 +0200 | [diff] [blame] | 92 | stacklight_monitor01: |
| 93 | expression: <<node_hostname>>__equals__mon01 |
| 94 | cluster_param: |
| 95 | stacklight_node01_address: |
| 96 | value_template: <<node_control_ip>> |
| 97 | stacklight_monitor02: |
| 98 | expression: <<node_hostname>>__equals__mon02 |
| 99 | cluster_param: |
| 100 | stacklight_node02_address: |
| 101 | value_template: <<node_control_ip>> |
| 102 | stacklight_monitor03: |
| 103 | expression: <<node_hostname>>__equals__mon03 |
| 104 | cluster_param: |
| 105 | stacklight_node03_address: |
| 106 | value_template: <<node_control_ip>> |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 107 | node: |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 108 | prx_node: |
| 109 | name: ${_param:kubernetes_proxy_node01_hostname} |
| 110 | domain: ${_param:cluster_domain} |
| 111 | classes: |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 112 | - cluster.${_param:cluster_name}.stacklight.proxy |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 113 | params: |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 114 | salt_master_host: ${_param:infra_config_deploy_address} |
Simon Pasquier | 3f9d3fc | 2017-04-26 10:47:10 +0200 | [diff] [blame] | 115 | linux_system_codename: xenial |
| 116 | single_address: ${_param:kubernetes_proxy_node01_address} |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 117 | stacklight_node01: |
| 118 | name: ${_param:stacklight_node01_hostname} |
Tomáš Kukrál | 8c25ac9 | 2017-04-27 22:46:12 +0200 | [diff] [blame] | 119 | domain: ${_param:cluster_domain} |
| 120 | classes: |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 121 | - service.galera.master.cluster |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 122 | - system.docker.swarm.master |
| 123 | - cluster.${_param:cluster_name}.stacklight.client |
| 124 | - cluster.${_param:cluster_name}.stacklight.server |
Tomáš Kukrál | 8c25ac9 | 2017-04-27 22:46:12 +0200 | [diff] [blame] | 125 | params: |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 126 | salt_master_host: ${_param:infra_config_deploy_address} |
Tomáš Kukrál | 8c25ac9 | 2017-04-27 22:46:12 +0200 | [diff] [blame] | 127 | linux_system_codename: xenial |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 128 | single_address: ${_param:stacklight_node01_address} |
Simon Pasquier | a3a92f6 | 2017-04-28 15:19:18 +0200 | [diff] [blame] | 129 | keepalived_vip_priority: 100 |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 130 | mysql_cluster_role: master |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 131 | stacklight_node02: |
| 132 | name: ${_param:stacklight_node02_hostname} |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 133 | domain: ${_param:cluster_domain} |
| 134 | classes: |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 135 | - service.galera.slave.cluster |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 136 | - system.docker.swarm.manager |
| 137 | - cluster.${_param:cluster_name}.stacklight.server |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 138 | params: |
| 139 | salt_master_host: ${_param:infra_config_deploy_address} |
| 140 | linux_system_codename: xenial |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 141 | single_address: ${_param:stacklight_node02_address} |
Simon Pasquier | a3a92f6 | 2017-04-28 15:19:18 +0200 | [diff] [blame] | 142 | keepalived_vip_priority: 101 |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 143 | mysql_cluster_role: slave |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 144 | stacklight_node03: |
| 145 | name: ${_param:stacklight_node03_hostname} |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 146 | domain: ${_param:cluster_domain} |
| 147 | classes: |
Swann Croiset | 4e3e084 | 2017-05-04 16:49:57 +0200 | [diff] [blame] | 148 | - service.galera.slave.cluster |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 149 | - system.docker.swarm.manager |
| 150 | - cluster.${_param:cluster_name}.stacklight.server |
Simon Pasquier | a4e3825 | 2017-04-28 11:14:29 +0200 | [diff] [blame] | 151 | params: |
| 152 | salt_master_host: ${_param:infra_config_deploy_address} |
| 153 | linux_system_codename: xenial |
Simon Pasquier | a7a449d | 2017-05-11 10:03:41 +0200 | [diff] [blame] | 154 | single_address: ${_param:stacklight_node03_address} |
Simon Pasquier | a3a92f6 | 2017-04-28 15:19:18 +0200 | [diff] [blame] | 155 | keepalived_vip_priority: 102 |
Jiri Broulik | d3a3867 | 2017-08-22 14:15:09 +0200 | [diff] [blame] | 156 | mysql_cluster_role: slave |
| 157 | kubernetes_compute_node01: |
| 158 | name: ${_param:kubernetes_compute_node01_hostname} |
| 159 | domain: ${_param:cluster_domain} |
| 160 | classes: |
| 161 | - cluster.${_param:cluster_name}.kubernetes.compute |
| 162 | params: |
| 163 | salt_master_host: ${_param:infra_config_deploy_address} |
| 164 | linux_system_codename: xenial |
| 165 | single_address: ${_param:kubernetes_compute_node01_address} |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 166 | deploy_address: ${_param:kubernetes_compute_node01_deploy_address} |
Jiri Broulik | d3a3867 | 2017-08-22 14:15:09 +0200 | [diff] [blame] | 167 | kubernetes_compute_node02: |
| 168 | name: ${_param:kubernetes_compute_node02_hostname} |
| 169 | domain: ${_param:cluster_domain} |
| 170 | classes: |
| 171 | - cluster.${_param:cluster_name}.kubernetes.compute |
| 172 | params: |
| 173 | salt_master_host: ${_param:infra_config_deploy_address} |
| 174 | linux_system_codename: xenial |
Dmitry Kalashnik | 1085a99 | 2017-09-08 16:39:21 +0400 | [diff] [blame] | 175 | single_address: ${_param:kubernetes_compute_node02_address} |
Victor Ryzhenkin | c1e05b7 | 2018-05-07 17:44:11 +0400 | [diff] [blame^] | 176 | deploy_address: ${_param:kubernetes_compute_node02_deploy_address} |