Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 1 | classes: |
azvyagintsev | 2859f0e | 2018-06-11 17:45:47 +0300 | [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 | 6f7caae | 2017-05-17 16:30:06 +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 |
| 8 | - system.salt.minion.cert.k8s_server |
| 9 | - system.mysql.client |
| 10 | - system.mysql.client.database.grafana |
| 11 | - system.reclass.storage.salt |
| 12 | - system.reclass.storage.system.kubernetes_control_cluster |
Ales Komarek | f2d1e39 | 2017-05-17 19:43:44 +0200 | [diff] [blame] | 13 | - cluster.virtual-mcp11-k8s-calico-dyn |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +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/" |
Ales Komarek | f2d1e39 | 2017-05-17 19:43:44 +0200 | [diff] [blame] | 23 | salt_master_host: 127.0.0.1 |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 24 | salt: |
| 25 | master: |
| 26 | reactor: |
| 27 | reclass/minion/classify: |
Ales Komarek | f2d1e39 | 2017-05-17 19:43:44 +0200 | [diff] [blame] | 28 | - salt://reclass/reactor/node_register.sls |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 29 | reclass: |
| 30 | storage: |
| 31 | class_mapping: |
| 32 | common_node: |
| 33 | expression: all |
| 34 | node_param: |
| 35 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 36 | value_template: <<node_control_ip>> |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 37 | linux_system_codename: |
| 38 | value_template: <<node_os>> |
| 39 | salt_master_host: |
| 40 | value_template: <<node_master_ip>> |
Ales Komarek | 80ad21c | 2017-05-19 11:26:49 +0200 | [diff] [blame] | 41 | infra_config: |
Ales Komarek | 10629ca | 2017-05-17 20:30:38 +0200 | [diff] [blame] | 42 | expression: <<node_hostname>>__equals__cfg01 |
| 43 | cluster_param: |
| 44 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 45 | value_template: <<node_control_ip>> |
Ales Komarek | 10629ca | 2017-05-17 20:30:38 +0200 | [diff] [blame] | 46 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 47 | value_template: <<node_deploy_ip>> |
Ales Komarek | 80ad21c | 2017-05-19 11:26:49 +0200 | [diff] [blame] | 48 | infra_proxy: |
| 49 | expression: <<node_hostname>>__startswith__prx |
| 50 | node_class: |
| 51 | value_template: |
| 52 | - cluster.<<node_cluster>>.stacklight.proxy |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [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>> |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 58 | kubernetes_control02: |
| 59 | expression: <<node_hostname>>__equals__ctl02 |
| 60 | cluster_param: |
Adam Tengler | 072f778 | 2017-05-18 19:02:37 +0200 | [diff] [blame] | 61 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 62 | value_template: <<node_control_ip>> |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 63 | kubernetes_control03: |
| 64 | expression: <<node_hostname>>__equals__ctl03 |
| 65 | cluster_param: |
Adam Tengler | 072f778 | 2017-05-18 19:02:37 +0200 | [diff] [blame] | 66 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 67 | value_template: <<node_control_ip>> |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 68 | kubernetes_compute: |
| 69 | expression: <<node_hostname>>__startswith__cmp |
| 70 | node_class: |
| 71 | value_template: |
| 72 | - cluster.<<node_cluster>>.kubernetes.compute |
Ales Komarek | 80ad21c | 2017-05-19 11:26:49 +0200 | [diff] [blame] | 73 | stacklight_monitor01: |
| 74 | expression: <<node_hostname>>__equals__mon01 |
| 75 | cluster_param: |
| 76 | stacklight_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 77 | value_template: <<node_control_ip>> |
Ales Komarek | 80ad21c | 2017-05-19 11:26:49 +0200 | [diff] [blame] | 78 | stacklight_monitor02: |
| 79 | expression: <<node_hostname>>__equals__mon02 |
| 80 | cluster_param: |
| 81 | stacklight_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 82 | value_template: <<node_control_ip>> |
Ales Komarek | 80ad21c | 2017-05-19 11:26:49 +0200 | [diff] [blame] | 83 | stacklight_monitor03: |
| 84 | expression: <<node_hostname>>__equals__mon03 |
| 85 | cluster_param: |
| 86 | stacklight_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 87 | value_template: <<node_control_ip>> |
Ales Komarek | 6f7caae | 2017-05-17 16:30:06 +0200 | [diff] [blame] | 88 | node: |
| 89 | prx_node: |
| 90 | name: ${_param:kubernetes_proxy_node01_hostname} |
| 91 | domain: ${_param:cluster_domain} |
| 92 | classes: |
| 93 | - cluster.${_param:cluster_name}.stacklight.proxy |
| 94 | params: |
| 95 | salt_master_host: ${_param:infra_config_deploy_address} |
| 96 | linux_system_codename: xenial |
| 97 | single_address: ${_param:kubernetes_proxy_node01_address} |
| 98 | stacklight_node01: |
| 99 | name: ${_param:stacklight_node01_hostname} |
| 100 | domain: ${_param:cluster_domain} |
| 101 | classes: |
| 102 | - service.galera.master.cluster |
| 103 | - system.docker.swarm.master |
| 104 | - cluster.${_param:cluster_name}.stacklight.client |
| 105 | - cluster.${_param:cluster_name}.stacklight.server |
| 106 | params: |
| 107 | salt_master_host: ${_param:infra_config_deploy_address} |
| 108 | linux_system_codename: xenial |
| 109 | single_address: ${_param:stacklight_node01_address} |
| 110 | keepalived_vip_priority: 100 |
| 111 | mysql_cluster_role: master |
| 112 | stacklight_node02: |
| 113 | name: ${_param:stacklight_node02_hostname} |
| 114 | domain: ${_param:cluster_domain} |
| 115 | classes: |
| 116 | - service.galera.slave.cluster |
| 117 | - system.docker.swarm.manager |
| 118 | - cluster.${_param:cluster_name}.stacklight.server |
| 119 | params: |
| 120 | salt_master_host: ${_param:infra_config_deploy_address} |
| 121 | linux_system_codename: xenial |
| 122 | single_address: ${_param:stacklight_node02_address} |
| 123 | keepalived_vip_priority: 101 |
| 124 | mysql_cluster_role: slave |
| 125 | stacklight_node03: |
| 126 | name: ${_param:stacklight_node03_hostname} |
| 127 | domain: ${_param:cluster_domain} |
| 128 | classes: |
| 129 | - service.galera.slave.cluster |
| 130 | - system.docker.swarm.manager |
| 131 | - cluster.${_param:cluster_name}.stacklight.server |
| 132 | params: |
| 133 | salt_master_host: ${_param:infra_config_deploy_address} |
| 134 | linux_system_codename: xenial |
| 135 | single_address: ${_param:stacklight_node03_address} |
| 136 | keepalived_vip_priority: 102 |
| 137 | mysql_cluster_role: slave |