blob: 69a8d1bebb4a33ef938350116cc5c4cf19731414 [file] [log] [blame]
Svimba6f9ffc52018-06-05 17:36:36 +02001classes:
2- system.linux.system.single
3- system.linux.system.repo.ubuntu
4- system.linux.system.repo.mcp.salt
5- system.openssh.client.lab
6- system.salt.master.pkg
7- system.salt.minion.ca.salt_master
8- system.salt.master.api
9- system.salt.minion.cert.k8s_server
10- system.reclass.storage.salt
11- system.reclass.storage.system.kubernetes_control_cluster
12- cluster.k8s-ha-contrail-40.infra
13
14parameters:
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 deploy_address: ${_param:infra_config_deploy_address}
22 linux_system_codename: xenial
23 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
24 salt_master_host: ${_param:infra_config_deploy_address}
25 salt_master_environment_revision: master
26 salt_master_environment_repository: 'https://github.com/salt-formulas'
27 salt:
28 master:
29 reactor:
30 reclass/minion/classify:
31 - salt://reclass/reactor/node_register.sls
32 linux:
33 network:
34 interface:
35 ens4:
36 enabled: true
37 type: eth
38 proto: static
39 address: ${_param:single_address}
40 netmask: 255.255.255.0
41 pre_up_cmds:
42 - "iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE"
43 post_down_cmds:
44 - "iptables -t nat -F POSTROUTING"
45 system:
46 kernel:
47 sysctl:
48 net.ipv4.conf.ens3.forwarding: 1
49 net.ipv4.conf.ens3.send_redirects: 0
50 reclass:
51 storage:
52 class_mapping:
53 common_node:
54 expression: all
55 node_param:
56 single_address:
57 value_template: <<node_control_ip>>
58 linux_system_codename:
59 value_template: <<node_os>>
60 salt_master_host:
61 value_template: <<node_master_ip>>
62 deploy_address:
63 value_template: <<node_deploy_ip>>
64 infra_config:
65 expression: <<node_hostname>>__startswith__cfg
66 cluster_param:
67 infra_config_address:
68 value_template: <<node_control_ip>>
69 infra_config_deploy_address:
70 value_template: <<node_deploy_ip>>
71 cluster_domain:
72 value_template: <<node_domain>>
73 kubernetes_control01:
74 expression: <<node_hostname>>__equals__ctl01
75 cluster_param:
76 kubernetes_control_node01_address:
77 value_template: <<node_control_ip>>
78 kubernetes_control_node01_deploy_address:
79 value_template: <<node_deploy_ip>>
80 kubernetes_control02:
81 expression: <<node_hostname>>__equals__ctl02
82 cluster_param:
83 kubernetes_control_node02_address:
84 value_template: <<node_control_ip>>
85 kubernetes_control_node02_deploy_address:
86 value_template: <<node_deploy_ip>>
87 kubernetes_control03:
88 expression: <<node_hostname>>__equals__ctl03
89 cluster_param:
90 kubernetes_control_node03_address:
91 value_template: <<node_control_ip>>
92 kubernetes_control_node03_deploy_address:
93 value_template: <<node_deploy_ip>>
94 etcd_control01:
95 expression: <<node_hostname>>__equals__ctl01
96 cluster_param:
97 etcd_control_node01_address:
98 value_template: <<node_deploy_ip>>
99 etcd_control02:
100 expression: <<node_hostname>>__equals__ctl02
101 cluster_param:
102 etcd_control_node02_address:
103 value_template: <<node_deploy_ip>>
104 etcd_control03:
105 expression: <<node_hostname>>__equals__ctl03
106 cluster_param:
107 etcd_control_node03_address:
108 value_template: <<node_deploy_ip>>
109 kubernetes_compute:
110 expression: <<node_hostname>>__startswith__cmp
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.kubernetes.compute
114 node:
115 kubernetes_control_node01:
116 params:
117 rabbitmq_cluster_role: master
118 opencontrail_database_id: 1
119 node_class:
120 value_template:
121 - cluster.<<node_cluster>>.opencontrail.control
122 kubernetes_control_node02:
123 params:
124 rabbitmq_cluster_role: slave
125 opencontrail_database_id: 2
126 node_class:
127 value_template:
128 - cluster.<<node_cluster>>.opencontrail.control
129 kubernetes_control_node03:
130 params:
131 rabbitmq_cluster_role: slave
132 opencontrail_database_id: 3
133 node_class:
134 value_template:
135 - cluster.<<node_cluster>>.opencontrail.control