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