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