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