blob: 1b9e70dadc96175a5c6530ff1d51d6ad2f7aa308 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
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
Petr Michalecf05e3ea2017-08-21 17:33:16 +020011- cluster.k8s-ha-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020012parameters:
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}
vrovachev61bffdc2017-08-14 20:23:27 +040019 deploy_address: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020020 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
22 salt_master_host: ${_param:infra_config_deploy_address}
Adam Tengler0963f862017-07-04 15:46:06 +000023 salt:
24 master:
25 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
Marek Celoud9749b272017-07-10 17:47:42 +020028 linux:
29 network:
30 interface:
31 ens4:
32 enabled: true
33 type: eth
34 proto: static
35 address: ${_param:single_address}
36 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020037 reclass:
38 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000039 class_mapping:
40 common_node:
41 expression: all
42 node_param:
43 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000044 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000045 linux_system_codename:
46 value_template: <<node_os>>
47 salt_master_host:
48 value_template: <<node_master_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040049 deploy_address:
Tomáš Kukrál075ec9a2017-07-27 11:35:51 +020050 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000051 infra_config:
52 expression: <<node_hostname>>__startswith__cfg
53 cluster_param:
54 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000055 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000056 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000057 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000058 cluster_domain:
59 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000060 kubernetes_control01:
61 expression: <<node_hostname>>__equals__ctl01
62 cluster_param:
63 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000064 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040065 kubernetes_control_node01_deploy_address:
66 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000067 kubernetes_control02:
68 expression: <<node_hostname>>__equals__ctl02
69 cluster_param:
70 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000071 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040072 kubernetes_control_node02_deploy_address:
73 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000074 kubernetes_control03:
75 expression: <<node_hostname>>__equals__ctl03
76 cluster_param:
77 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000078 value_template: <<node_control_ip>>
vrovachev61bffdc2017-08-14 20:23:27 +040079 kubernetes_control_node03_deploy_address:
80 value_template: <<node_deploy_ip>>
Tomáš Kukrál81fd9a32017-07-26 16:24:52 +020081 etcd_control01:
82 expression: <<node_hostname>>__equals__ctl01
83 cluster_param:
84 etcd_control_node01_address:
85 value_template: <<node_deploy_ip>>
86 etcd_control02:
87 expression: <<node_hostname>>__equals__ctl02
88 cluster_param:
89 etcd_control_node02_address:
90 value_template: <<node_deploy_ip>>
91 etcd_control03:
92 expression: <<node_hostname>>__equals__ctl03
93 cluster_param:
94 etcd_control_node03_address:
95 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000096 opencontrail_control01:
97 expression: <<node_hostname>>__equals__ntw01
98 cluster_param:
99 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000100 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000101 opencontrail_control02:
102 expression: <<node_hostname>>__equals__ntw02
103 cluster_param:
104 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000105 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000106 opencontrail_control03:
107 expression: <<node_hostname>>__equals__ntw03
108 cluster_param:
109 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000110 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000111 kubernetes_compute:
112 expression: <<node_hostname>>__startswith__cmp
113 node_class:
114 value_template:
115 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200116 node:
Ales Komarekc12dd412017-06-27 16:24:42 +0200117 opencontrail_control_node01:
118 params:
119 rabbitmq_cluster_role: master
120 opencontrail_control_node02:
121 params:
122 rabbitmq_cluster_role: slave
123 opencontrail_control_node03:
124 params:
125 rabbitmq_cluster_role: slave