Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 1 | classes: |
Martin Polreich | 1ee2e09 | 2017-08-10 16:06:57 +0200 | [diff] [blame] | 2 | - system.docker.client |
| 3 | - system.docker.host |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 4 | - system.linux.system.repo.ubuntu |
| 5 | - system.openssh.client.lab |
| 6 | - system.salt.master.pkg |
| 7 | - system.salt.minion.ca.salt_master |
| 8 | - system.salt.master.api |
| 9 | - system.reclass.storage.salt |
| 10 | - system.salt.minion.cert.k8s_server |
| 11 | - system.reclass.storage.system.kubernetes_control_cluster |
| 12 | - system.reclass.storage.system.opencontrail_control_cluster |
Adam Tengler | 75c2f95 | 2017-07-04 17:37:15 +0000 | [diff] [blame] | 13 | - cluster.sl_k8s_contrail |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 14 | parameters: |
| 15 | _param: |
| 16 | salt_master_base_environment: prd |
| 17 | reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab" |
| 18 | reclass_data_revision: master |
| 19 | reclass_config_master: ${_param:infra_config_deploy_address} |
| 20 | single_address: ${_param:infra_config_address} |
| 21 | linux_system_codename: xenial |
| 22 | salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/" |
| 23 | salt_master_host: ${_param:infra_config_deploy_address} |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 24 | salt: |
| 25 | master: |
| 26 | reactor: |
| 27 | reclass/minion/classify: |
| 28 | - salt://reclass/reactor/node_register.sls |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 29 | reclass: |
| 30 | storage: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 31 | class_mapping: |
| 32 | common_node: |
| 33 | expression: all |
| 34 | node_param: |
| 35 | single_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 36 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 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>>__startswith__cfg |
| 43 | cluster_param: |
| 44 | infra_config_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 45 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 46 | infra_config_deploy_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 47 | value_template: <<node_deploy_ip>> |
Adam Tengler | 4f23d96 | 2017-07-04 19:54:59 +0000 | [diff] [blame] | 48 | cluster_domain: |
| 49 | value_template: <<node_domain>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 50 | kubernetes_control01: |
| 51 | expression: <<node_hostname>>__equals__ctl01 |
| 52 | cluster_param: |
| 53 | kubernetes_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 54 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 55 | kubernetes_control02: |
| 56 | expression: <<node_hostname>>__equals__ctl02 |
| 57 | cluster_param: |
| 58 | kubernetes_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 59 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 60 | kubernetes_control03: |
| 61 | expression: <<node_hostname>>__equals__ctl03 |
| 62 | cluster_param: |
| 63 | kubernetes_control_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 64 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 65 | opencontrail_control01: |
| 66 | expression: <<node_hostname>>__equals__ntw01 |
| 67 | cluster_param: |
| 68 | opencontrail_control_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 69 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 70 | opencontrail_control02: |
| 71 | expression: <<node_hostname>>__equals__ntw02 |
| 72 | cluster_param: |
| 73 | opencontrail_control_node02_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 74 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 75 | opencontrail_control03: |
| 76 | expression: <<node_hostname>>__equals__ntw03 |
| 77 | cluster_param: |
| 78 | opencontrail_control_node03_address: |
| 79 | value_template: <<node_ip> |
| 80 | kubernetes_proxy: |
| 81 | expression: <<node_hostname>>__equals__prx01 |
| 82 | cluster_param: |
| 83 | kubernetes_proxy_node01_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 84 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 85 | stacklight_monitor_node01: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 86 | expression: <<node_hostname>>__equals__mon01 |
| 87 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 88 | stacklight_monitor_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 89 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 90 | stacklight_monitor_node02: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 91 | expression: <<node_hostname>>__equals__mon02 |
| 92 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 93 | stacklight_monitor_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 94 | value_template: <<node_control_ip>> |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 95 | stacklight_monitor_node03: |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 96 | expression: <<node_hostname>>__equals__mon03 |
| 97 | cluster_param: |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 98 | stacklight_monitor_node03_address: |
Adam Tengler | c617650 | 2017-07-04 20:45:06 +0000 | [diff] [blame] | 99 | value_template: <<node_control_ip>> |
Adam Tengler | 0963f86 | 2017-07-04 15:46:06 +0000 | [diff] [blame] | 100 | kubernetes_compute: |
| 101 | expression: <<node_hostname>>__startswith__cmp |
| 102 | node_class: |
| 103 | value_template: |
| 104 | - cluster.<<node_cluster>>.kubernetes.compute |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 105 | prx_node: |
| 106 | name: ${_param:kubernetes_proxy_node01_hostname} |
| 107 | domain: ${_param:cluster_domain} |
| 108 | classes: |
| 109 | - cluster.${_param:cluster_name}.stacklight.proxy |
| 110 | params: |
| 111 | salt_master_host: ${_param:infra_config_deploy_address} |
| 112 | linux_system_codename: xenial |
| 113 | single_address: ${_param:kubernetes_proxy_node01_address} |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 114 | stacklight_monitor_node01: |
| 115 | name: ${_param:stacklight_monitor_node01_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 116 | domain: ${_param:cluster_domain} |
| 117 | classes: |
| 118 | - service.galera.master.cluster |
| 119 | - system.docker.swarm.master |
| 120 | - cluster.${_param:cluster_name}.stacklight.client |
| 121 | - cluster.${_param:cluster_name}.stacklight.server |
| 122 | params: |
| 123 | salt_master_host: ${_param:infra_config_deploy_address} |
| 124 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 125 | single_address: ${_param:stacklight_monitor_node01_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 126 | keepalived_vip_priority: 100 |
| 127 | mysql_cluster_role: master |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 128 | stacklight_monitor_node02: |
| 129 | name: ${_param:stacklight_monitor_node02_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 130 | domain: ${_param:cluster_domain} |
| 131 | classes: |
| 132 | - service.galera.slave.cluster |
| 133 | - system.docker.swarm.manager |
| 134 | - cluster.${_param:cluster_name}.stacklight.server |
| 135 | params: |
| 136 | salt_master_host: ${_param:infra_config_deploy_address} |
| 137 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 138 | single_address: ${_param:stacklight_monitor_node02_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 139 | keepalived_vip_priority: 101 |
| 140 | mysql_cluster_role: slave |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 141 | stacklight_monitor_node03: |
| 142 | name: ${_param:stacklight_monitor_node03_hostname} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 143 | domain: ${_param:cluster_domain} |
| 144 | classes: |
| 145 | - service.galera.slave.cluster |
| 146 | - system.docker.swarm.manager |
| 147 | - cluster.${_param:cluster_name}.stacklight.server |
| 148 | params: |
| 149 | salt_master_host: ${_param:infra_config_deploy_address} |
| 150 | linux_system_codename: xenial |
Adam Tengler | c9c1c7c | 2017-07-13 13:37:51 +0000 | [diff] [blame] | 151 | single_address: ${_param:stacklight_monitor_node03_address} |
Ales Komarek | c12dd41 | 2017-06-27 16:24:42 +0200 | [diff] [blame] | 152 | keepalived_vip_priority: 102 |
| 153 | mysql_cluster_role: slave |
| 154 | opencontrail_control_node01: |
| 155 | params: |
| 156 | rabbitmq_cluster_role: master |
| 157 | opencontrail_control_node02: |
| 158 | params: |
| 159 | rabbitmq_cluster_role: slave |
| 160 | opencontrail_control_node03: |
| 161 | params: |
| 162 | rabbitmq_cluster_role: slave |