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