Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 1 | classes: |
| 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 Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 8 | - system.reclass.storage.system.ceph_mon_cluster |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 9 | - cluster.ceph_ha.ceph |
| 10 | - cluster.ceph_ha.infra |
| 11 | parameters: |
| 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 Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 25 | reactor: |
| 26 | reclass/minion/classify: |
| 27 | - salt://reclass/reactor/node_register.sls |
| 28 | reclass: |
| 29 | storage: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 30 | 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 Smola | d571c86 | 2017-08-22 16:17:34 +0200 | [diff] [blame] | 44 | ceph_crush_parent: |
| 45 | value: rack<<count>> |
| 46 | start: 1 |
Ondrej Smola | e7e04fb | 2017-08-22 14:50:56 +0200 | [diff] [blame] | 47 | # single_address: |
| 48 | # value: ceph_osd_node<<count>>_address |
| 49 | # start: 1 |
| 50 | # digits: 2 |
| 51 | # interpolate: true |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 52 | params: |
| 53 | salt_master_host: ${_param:reclass_config_master} |
| 54 | linux_system_codename: xenial |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 55 | 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 Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 74 | ceph_osd_01: |
| 75 | expression: <<node_hostname>>__equals__osd0 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 76 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 77 | ceph_osd_node01_address: |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 78 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 79 | ceph_osd_02: |
| 80 | expression: <<node_hostname>>__equals__osd1 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 81 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 82 | ceph_osd_node02_address: |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 83 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 84 | 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 Smola | de178b5 | 2017-08-24 11:18:16 +0200 | [diff] [blame^] | 90 | expression: <<node_hostname>>__equals__cmn01 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 91 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 92 | 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 Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 103 | 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 |