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