blob: 4bff3411fdcf520a9bedee7a76bc4ef8262a73f9 [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
11- cluster.k8s_ha_contrail
12parameters:
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 Tengler0963f862017-07-04 15:46:06 +000022 salt:
23 master:
24 reactor:
25 reclass/minion/classify:
26 - salt://reclass/reactor/node_register.sls
Marek Celoud9749b272017-07-10 17:47:42 +020027 linux:
28 network:
29 interface:
30 ens4:
31 enabled: true
32 type: eth
33 proto: static
34 address: ${_param:single_address}
35 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020036 reclass:
37 storage:
Adam Tengler0963f862017-07-04 15:46:06 +000038 class_mapping:
39 common_node:
40 expression: all
41 node_param:
42 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000043 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000044 linux_system_codename:
45 value_template: <<node_os>>
46 salt_master_host:
47 value_template: <<node_master_ip>>
48 infra_config:
49 expression: <<node_hostname>>__startswith__cfg
50 cluster_param:
51 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000052 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000053 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000054 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000055 cluster_domain:
56 value_template: <<node_domain>>
Adam Tengler0963f862017-07-04 15:46:06 +000057 kubernetes_control01:
58 expression: <<node_hostname>>__equals__ctl01
59 cluster_param:
60 kubernetes_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000061 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000062 kubernetes_control02:
63 expression: <<node_hostname>>__equals__ctl02
64 cluster_param:
65 kubernetes_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000066 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000067 kubernetes_control03:
68 expression: <<node_hostname>>__equals__ctl03
69 cluster_param:
70 kubernetes_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000071 value_template: <<node_control_ip>>
Tomáš Kukrál81fd9a32017-07-26 16:24:52 +020072 etcd_control01:
73 expression: <<node_hostname>>__equals__ctl01
74 cluster_param:
75 etcd_control_node01_address:
76 value_template: <<node_deploy_ip>>
77 etcd_control02:
78 expression: <<node_hostname>>__equals__ctl02
79 cluster_param:
80 etcd_control_node02_address:
81 value_template: <<node_deploy_ip>>
82 etcd_control03:
83 expression: <<node_hostname>>__equals__ctl03
84 cluster_param:
85 etcd_control_node03_address:
86 value_template: <<node_deploy_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000087 opencontrail_control01:
88 expression: <<node_hostname>>__equals__ntw01
89 cluster_param:
90 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000091 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000092 opencontrail_control02:
93 expression: <<node_hostname>>__equals__ntw02
94 cluster_param:
95 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +000097 opencontrail_control03:
98 expression: <<node_hostname>>__equals__ntw03
99 cluster_param:
100 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler0963f862017-07-04 15:46:06 +0000102 kubernetes_compute:
103 expression: <<node_hostname>>__startswith__cmp
104 node_class:
105 value_template:
106 - cluster.<<node_cluster>>.kubernetes.compute
Ales Komarekc12dd412017-06-27 16:24:42 +0200107 node:
Ales Komarekc12dd412017-06-27 16:24:42 +0200108 opencontrail_control_node01:
109 params:
110 rabbitmq_cluster_role: master
111 opencontrail_control_node02:
112 params:
113 rabbitmq_cluster_role: slave
114 opencontrail_control_node03:
115 params:
116 rabbitmq_cluster_role: slave