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