blob: 3d7cbd0a7218ccb4adbff166600cba58d3328b27 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Ales Komarekc12dd412017-06-27 16:24:42 +02004- 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
Petr Michalecf05e3ea2017-08-21 17:33:16 +020012- cluster.k8s-ha-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020013parameters:
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}
vrovachev61bffdc2017-08-14 20:23:27 +040020 deploy_address: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020021 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
23 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000024 salt:
25 master:
26 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
Marek Celoud9749b272017-07-10 17:47:42 +020029 linux:
30 network:
31 interface:
32 ens4:
33 enabled: true
34 type: eth
35 proto: static
36 address: ${_param:single_address}
37 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020038 reclass:
39 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000040 class_mapping:
41 common_node:
42 expression: all
43 node_param:
44 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000045 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000046 linux_system_codename:
47 value_template: <<node_os>>
48 salt_master_host:
49 value_template: <<node_master_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040050 deploy_address:
Tomáš Kukrál075ec9a2017-07-27 11:35:51 +020051 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000052 infra_config:
53 expression: <<node_hostname>>__startswith__cfg
54 cluster_param:
55 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000056 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000057 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000058 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000059 cluster_domain:
60 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000061 kubernetes_control01:
62 expression: <<node_hostname>>__equals__ctl01
63 cluster_param:
64 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000065 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040066 kubernetes_control_node01_deploy_address:
67 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000068 kubernetes_control02:
69 expression: <<node_hostname>>__equals__ctl02
70 cluster_param:
71 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000072 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040073 kubernetes_control_node02_deploy_address:
74 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000075 kubernetes_control03:
76 expression: <<node_hostname>>__equals__ctl03
77 cluster_param:
78 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000079 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040080 kubernetes_control_node03_deploy_address:
81 value_template: <<node_deploy_ip>>
Tomáš Kukrál81fd9a32017-07-26 16:24:52 +020082 etcd_control01:
83 expression: <<node_hostname>>__equals__ctl01
84 cluster_param:
85 etcd_control_node01_address:
86 value_template: <<node_deploy_ip>>
87 etcd_control02:
88 expression: <<node_hostname>>__equals__ctl02
89 cluster_param:
90 etcd_control_node02_address:
91 value_template: <<node_deploy_ip>>
92 etcd_control03:
93 expression: <<node_hostname>>__equals__ctl03
94 cluster_param:
95 etcd_control_node03_address:
96 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000097 opencontrail_control01:
98 expression: <<node_hostname>>__equals__ntw01
99 cluster_param:
100 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000102 opencontrail_control02:
103 expression: <<node_hostname>>__equals__ntw02
104 cluster_param:
105 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000107 opencontrail_control03:
108 expression: <<node_hostname>>__equals__ntw03
109 cluster_param:
110 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000111 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000112 kubernetes_compute:
113 expression: <<node_hostname>>__startswith__cmp
114 node_class:
115 value_template:
116 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200117 node:
Ales Komarekc12dd412017-06-27 16:24:42 +0200118 opencontrail_control_node01:
119 params:
120 rabbitmq_cluster_role: master
121 opencontrail_control_node02:
122 params:
123 rabbitmq_cluster_role: slave
124 opencontrail_control_node03:
125 params:
126 rabbitmq_cluster_role: slave