blob: 2de9d4cc320667c5f218bfa3d574fa208edd9068 [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
Petr Michalecf05e3ea2017-08-21 17:33:16 +02009- cluster.ceph-ha.ceph
10- cluster.ceph-ha.infra
Ales Komarek56a8e3f2017-08-08 15:58:37 +020011parameters:
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>>
Jiri Broulik010181f2017-10-10 08:31:55 +020079 single_address:
80 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020081 ceph_osd_02:
82 expression: <<node_hostname>>__equals__osd1
Ales Komarek56a8e3f2017-08-08 15:58:37 +020083 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020084 ceph_osd_node02_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +020085 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020086 single_address:
87 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020088 ceph_osd_03:
89 expression: <<node_hostname>>__equals__osd2
90 cluster_param:
91 ceph_osd_node03_address:
92 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +020093 single_address:
94 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +020095 ceph_mon_01:
Ondrej Smolade178b52017-08-24 11:18:16 +020096 expression: <<node_hostname>>__equals__cmn01
Ales Komarek56a8e3f2017-08-08 15:58:37 +020097 cluster_param:
Ondrej Smola1cd57072017-08-14 15:22:05 +020098 ceph_mon_node01_address:
99 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200100 single_address:
101 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200102 ceph_mon_02:
103 expression: <<node_hostname>>__equals__cmn02
104 cluster_param:
105 ceph_mon_node02_address:
106 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200107 single_address:
108 value_template: <<node_control_ip>>
Ondrej Smola1cd57072017-08-14 15:22:05 +0200109 ceph_mon_03:
110 expression: <<node_hostname>>__equals__cmn03
111 cluster_param:
112 ceph_mon_node03_address:
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200113 value_template: <<node_control_ip>>
Jiri Broulik010181f2017-10-10 08:31:55 +0200114 single_address:
115 value_template: <<node_control_ip>>
Ales Komarek56a8e3f2017-08-08 15:58:37 +0200116 ceph_cfs:
117 expression: <<node_hostname>>__startswith__cfs
118 node_class:
119 value_template:
120 - cluster.<<node_cluster>>.ceph.cfs
Jiri Broulik010181f2017-10-10 08:31:55 +0200121 cluster_param:
122 single_address:
123 value_template: <<node_control_ip>>