blob: 123cb65c700f80c0d555527ff788343c23725cc4 [file] [log] [blame]
Ales Komarek56a8e3f2017-08-08 15:58:37 +02001classes:
2- system.linux.system.repo.ubuntu
3- system.salt.master.pkg
4 #- system.salt.master.git
5- system.salt.minion.ca.salt_master
6- system.salt.master.api
7- system.reclass.storage.salt
Ondrej Smola1cd57072017-08-14 15:22:05 +02008- system.reclass.storage.system.ceph_mon_cluster
Ales Komarek56a8e3f2017-08-08 15:58:37 +02009- cluster.ceph_ha.ceph
10- cluster.ceph_ha.infra
11parameters:
12 _param:
13 salt_master_base_environment: prd
14 reclass_data_repository: "https://github.com/LotharKAtt/ceph-virtual-lab.git"
15# salt_master_environment_revision: master
16# salt_master_environment_repository: "https://github.com/salt-formulas"
17 reclass_data_revision: master
18 reclass_config_master: ${_param:infra_config_deploy_address}
19 single_address: ${_param:infra_config_address}
20 linux_system_codename: xenial
21 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
22 salt_master_host: 127.0.0.1
23 salt:
24 master:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020025 reactor:
26 reclass/minion/classify:
27 - salt://reclass/reactor/node_register.sls
28 reclass:
29 storage:
Ondrej Smola1cd57072017-08-14 15:22:05 +020030 node:
31 infra_storage_rack01:
32 name: osd<<count>>
33 domain: ${_param:cluster_domain}
34 classes:
35 - cluster.${_param:cluster_name}.ceph.osd
36 repeat:
37 count: 3
38 start: 0
39 digits: 1
40 params:
41 ceph_host_id:
42 value: <<count>>
43 start: 1
Ondrej Smolad571c862017-08-22 16:17:34 +020044 ceph_crush_parent:
45 value: rack<<count>>
46 start: 1
Ondrej Smolae7e04fb2017-08-22 14:50:56 +020047 # single_address:
48 # value: ceph_osd_node<<count>>_address
49 # start: 1
50 # digits: 2
51 # interpolate: true
Ondrej Smola1cd57072017-08-14 15:22:05 +020052 params:
53 salt_master_host: ${_param:reclass_config_master}
54 linux_system_codename: xenial
Ales Komarek56a8e3f2017-08-08 15:58:37 +020055 class_mapping:
56 common_node:
57 expression: all
58 node_param:
59 single_address:
60 value_template: <<node_control_ip>>
61 linux_system_codename:
62 value_template: <<node_os>>
63 salt_master_host:
64 value_template: <<node_master_ip>>
65 infra_config:
66 expression: <<node_hostname>>__startswith__cfg
67 cluster_param:
68 infra_config_address:
69 value_template: <<node_control_ip>>
70 infra_config_deploy_address:
71 value_template: <<node_deploy_ip>>
72 cluster_domain:
73 value_template: <<node_domain>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020074 ceph_osd_01:
75 expression: <<node_hostname>>__equals__osd0
Ales Komarek56a8e3f2017-08-08 15:58:37 +020076 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020077 ceph_osd_node01_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020078 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020079 ceph_osd_02:
80 expression: <<node_hostname>>__equals__osd1
Ales Komarek56a8e3f2017-08-08 15:58:37 +020081 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020082 ceph_osd_node02_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020083 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020084 ceph_osd_03:
85 expression: <<node_hostname>>__equals__osd2
86 cluster_param:
87 ceph_osd_node03_address:
88 value_template: <<node_control_ip>>
89 ceph_mon_01:
Ondrej Smolade178b52017-08-24 11:18:16 +020090 expression: <<node_hostname>>__equals__cmn01
Ales Komarek56a8e3f2017-08-08 15:58:37 +020091 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020092 ceph_mon_node01_address:
93 value_template: <<node_control_ip>>
94 ceph_mon_02:
95 expression: <<node_hostname>>__equals__cmn02
96 cluster_param:
97 ceph_mon_node02_address:
98 value_template: <<node_control_ip>>
99 ceph_mon_03:
100 expression: <<node_hostname>>__equals__cmn03
101 cluster_param:
102 ceph_mon_node03_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200103 value_template: <<node_control_ip>>
104 ceph_cfs:
105 expression: <<node_hostname>>__startswith__cfs
106 node_class:
107 value_template:
108 - cluster.<<node_cluster>>.ceph.cfs