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