blob: 8d766360d8a4d8168b68af5df459c4dcf7bfa35f [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
8- system.reclass.storage.system.ceph_monitor_cluster
9- 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:
25 environment:
26 prd:
27 formula:
28 ceph:
29 source: git
30 address: 'https://github.com/LotharKAtt/salt-formula-ceph.git'
31 revision: master
32 dev:
33 formula:
34 ceph:
35 source: git
36 address: 'https://github.com/LotharKAtt/salt-formula-ceph.git'
37 revision: master
38 reactor:
39 reclass/minion/classify:
40 - salt://reclass/reactor/node_register.sls
41 reclass:
42 storage:
43 class_mapping:
44 common_node:
45 expression: all
46 node_param:
47 single_address:
48 value_template: <<node_control_ip>>
49 linux_system_codename:
50 value_template: <<node_os>>
51 salt_master_host:
52 value_template: <<node_master_ip>>
53 infra_config:
54 expression: <<node_hostname>>__startswith__cfg
55 cluster_param:
56 infra_config_address:
57 value_template: <<node_control_ip>>
58 infra_config_deploy_address:
59 value_template: <<node_deploy_ip>>
60 cluster_domain:
61 value_template: <<node_domain>>
62 ceph_osd:
63 expression: <<node_hostname>>__startswith__osd
64 node_class:
65 value_template:
66 - cluster.<<node_cluster>>.ceph.osd
67 ceph_monitor_01:
68 expression: <<node_hostname>>__equals__cmn01
69 cluster_param:
70 ceph_monitor_01_address:
71 value_template: <<node_control_ip>>
72 ceph_monitor_02:
73 expression: <<node_hostname>>__equals__cmn02
74 cluster_param:
75 ceph_monitor_02_address:
76 value_template: <<node_control_ip>>
77 ceph_monitor_03:
78 expression: <<node_hostname>>__equals__cmn03
79 cluster_param:
80 ceph_monitor_03_address:
81 value_template: <<node_control_ip>>
82 ceph_cfs:
83 expression: <<node_hostname>>__startswith__cfs
84 node_class:
85 value_template:
86 - cluster.<<node_cluster>>.ceph.cfs