blob: c2b73fcaa3e731532bb286233d914abad5c4e0b6 [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
Jiri Broulik5a2020f2017-10-31 13:38:55 +010015 reclass_data_repository: "https://github.com/tomkukral/ceph_ha_model.git"
Ales Komarek56a8e3f2017-08-08 15:58:37 +020016# 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:
Jiri Broulik92567732017-12-06 10:35:59 +010038 count: 3
Ondrej Smola1cd57072017-08-14 15:22:05 +020039 start: 0
40 digits: 1
41 params:
Ondrej Smolad571c862017-08-22 16:17:34 +020042 ceph_crush_parent:
43 value: rack<<count>>
44 start: 1
Ondrej Smolae7e04fb2017-08-22 14:50:56 +020045 # single_address:
46 # value: ceph_osd_node<<count>>_address
47 # start: 1
48 # digits: 2
49 # interpolate: true
Ondrej Smola1cd57072017-08-14 15:22:05 +020050 params:
51 salt_master_host: ${_param:reclass_config_master}
52 linux_system_codename: xenial
Ales Komarek56a8e3f2017-08-08 15:58:37 +020053 class_mapping:
54 common_node:
55 expression: all
56 node_param:
57 single_address:
58 value_template: <<node_control_ip>>
59 linux_system_codename:
60 value_template: <<node_os>>
61 salt_master_host:
62 value_template: <<node_master_ip>>
63 infra_config:
64 expression: <<node_hostname>>__startswith__cfg
65 cluster_param:
66 infra_config_address:
67 value_template: <<node_control_ip>>
68 infra_config_deploy_address:
69 value_template: <<node_deploy_ip>>
70 cluster_domain:
71 value_template: <<node_domain>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020072 ceph_osd_01:
73 expression: <<node_hostname>>__equals__osd0
Ales Komarek56a8e3f2017-08-08 15:58:37 +020074 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020075 ceph_osd_node01_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020076 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020077 single_address:
78 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>>
Jiri Broulik010181f2017-10-10 08:31:55 +020084 single_address:
85 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020086 ceph_osd_03:
87 expression: <<node_hostname>>__equals__osd2
88 cluster_param:
89 ceph_osd_node03_address:
90 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020091 single_address:
92 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020093 ceph_mon_01:
Ondrej Smolade178b52017-08-24 11:18:16 +020094 expression: <<node_hostname>>__equals__cmn01
Ales Komarek56a8e3f2017-08-08 15:58:37 +020095 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020096 ceph_mon_node01_address:
97 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020098 single_address:
99 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200100 ceph_mon_02:
101 expression: <<node_hostname>>__equals__cmn02
102 cluster_param:
103 ceph_mon_node02_address:
104 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200105 single_address:
106 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200107 ceph_mon_03:
108 expression: <<node_hostname>>__equals__cmn03
109 cluster_param:
110 ceph_mon_node03_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200111 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200112 single_address:
113 value_template: <<node_control_ip>>