blob: 8d1244ec85fcdd7ec93fbe715a91d5906eaf3c76 [file] [log] [blame]
Ales Komarek56a8e3f2017-08-08 15:58:37 +02001classes:
2- system.linux.system.repo.ubuntu
Richard Felkl04250022017-10-20 13:55:43 +02003- system.linux.system.repo.mcp.salt
Ales Komarek56a8e3f2017-08-08 15:58:37 +02004- system.salt.master.pkg
5 #- system.salt.master.git
6- system.salt.minion.ca.salt_master
7- system.salt.master.api
8- system.reclass.storage.salt
Ondrej Smola1cd57072017-08-14 15:22:05 +02009- system.reclass.storage.system.ceph_mon_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020010- cluster.ceph-ha.ceph
11- cluster.ceph-ha.infra
Ales Komarek56a8e3f2017-08-08 15:58:37 +020012parameters:
13 _param:
14 salt_master_base_environment: prd
15 reclass_data_repository: "https://github.com/LotharKAtt/ceph-virtual-lab.git"
16# salt_master_environment_revision: master
17# salt_master_environment_repository: "https://github.com/salt-formulas"
18 reclass_data_revision: master
19 reclass_config_master: ${_param:infra_config_deploy_address}
20 single_address: ${_param:infra_config_address}
21 linux_system_codename: xenial
22 salt_api_password_hash: "$6$WV0P1shnoDh2gI/Z$22/Bcd7ffMv0jDlFpT63cAU4PiXHz9pjXwngToKwqAsgoeK4HNR3PiKaushjxp3JsQ8hNoJmAC6TxzVqfV8WH/"
23 salt_master_host: 127.0.0.1
24 salt:
25 master:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020026 reactor:
27 reclass/minion/classify:
28 - salt://reclass/reactor/node_register.sls
29 reclass:
30 storage:
Ondrej Smola1cd57072017-08-14 15:22:05 +020031 node:
32 infra_storage_rack01:
33 name: osd<<count>>
34 domain: ${_param:cluster_domain}
35 classes:
36 - cluster.${_param:cluster_name}.ceph.osd
37 repeat:
38 count: 3
39 start: 0
40 digits: 1
41 params:
42 ceph_host_id:
43 value: <<count>>
44 start: 1
Ondrej Smolad571c862017-08-22 16:17:34 +020045 ceph_crush_parent:
46 value: rack<<count>>
47 start: 1
Ondrej Smolae7e04fb2017-08-22 14:50:56 +020048 # single_address:
49 # value: ceph_osd_node<<count>>_address
50 # start: 1
51 # digits: 2
52 # interpolate: true
Ondrej Smola1cd57072017-08-14 15:22:05 +020053 params:
54 salt_master_host: ${_param:reclass_config_master}
55 linux_system_codename: xenial
Ales Komarek56a8e3f2017-08-08 15:58:37 +020056 class_mapping:
57 common_node:
58 expression: all
59 node_param:
60 single_address:
61 value_template: <<node_control_ip>>
62 linux_system_codename:
63 value_template: <<node_os>>
64 salt_master_host:
65 value_template: <<node_master_ip>>
66 infra_config:
67 expression: <<node_hostname>>__startswith__cfg
68 cluster_param:
69 infra_config_address:
70 value_template: <<node_control_ip>>
71 infra_config_deploy_address:
72 value_template: <<node_deploy_ip>>
73 cluster_domain:
74 value_template: <<node_domain>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020075 ceph_osd_01:
76 expression: <<node_hostname>>__equals__osd0
Ales Komarek56a8e3f2017-08-08 15:58:37 +020077 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020078 ceph_osd_node01_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020079 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020080 single_address:
81 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020082 ceph_osd_02:
83 expression: <<node_hostname>>__equals__osd1
Ales Komarek56a8e3f2017-08-08 15:58:37 +020084 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020085 ceph_osd_node02_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020086 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020087 single_address:
88 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020089 ceph_osd_03:
90 expression: <<node_hostname>>__equals__osd2
91 cluster_param:
92 ceph_osd_node03_address:
93 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020094 single_address:
95 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020096 ceph_mon_01:
Ondrej Smolade178b52017-08-24 11:18:16 +020097 expression: <<node_hostname>>__equals__cmn01
Ales Komarek56a8e3f2017-08-08 15:58:37 +020098 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020099 ceph_mon_node01_address:
100 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200101 single_address:
102 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200103 ceph_mon_02:
104 expression: <<node_hostname>>__equals__cmn02
105 cluster_param:
106 ceph_mon_node02_address:
107 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200108 single_address:
109 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200110 ceph_mon_03:
111 expression: <<node_hostname>>__equals__cmn03
112 cluster_param:
113 ceph_mon_node03_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200114 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200115 single_address:
116 value_template: <<node_control_ip>>
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200117 ceph_cfs:
118 expression: <<node_hostname>>__startswith__cfs
119 node_class:
120 value_template:
121 - cluster.<<node_cluster>>.ceph.cfs
Jiri Broulik010181f2017-10-10 08:31:55 +0200122 cluster_param:
123 single_address:
124 value_template: <<node_control_ip>>