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