Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.linux.system.repo.ubuntu |
Richard Felkl | 0425002 | 2017-10-20 13:55:43 +0200 | [diff] [blame^] | 3 | - system.linux.system.repo.mcp.salt |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 4 | - 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 Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 9 | - system.reclass.storage.system.ceph_mon_cluster |
Petr Michalec | f05e3ea | 2017-08-21 17:33:16 +0200 | [diff] [blame] | 10 | - cluster.ceph-ha.ceph |
| 11 | - cluster.ceph-ha.infra |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 12 | parameters: |
| 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 Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 26 | reactor: |
| 27 | reclass/minion/classify: |
| 28 | - salt://reclass/reactor/node_register.sls |
| 29 | reclass: |
| 30 | storage: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 31 | 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 Smola | d571c86 | 2017-08-22 16:17:34 +0200 | [diff] [blame] | 45 | ceph_crush_parent: |
| 46 | value: rack<<count>> |
| 47 | start: 1 |
Ondrej Smola | e7e04fb | 2017-08-22 14:50:56 +0200 | [diff] [blame] | 48 | # single_address: |
| 49 | # value: ceph_osd_node<<count>>_address |
| 50 | # start: 1 |
| 51 | # digits: 2 |
| 52 | # interpolate: true |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 53 | params: |
| 54 | salt_master_host: ${_param:reclass_config_master} |
| 55 | linux_system_codename: xenial |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 56 | 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 Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 75 | ceph_osd_01: |
| 76 | expression: <<node_hostname>>__equals__osd0 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 77 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 78 | ceph_osd_node01_address: |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 79 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 80 | single_address: |
| 81 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 82 | ceph_osd_02: |
| 83 | expression: <<node_hostname>>__equals__osd1 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 84 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 85 | ceph_osd_node02_address: |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 86 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 87 | single_address: |
| 88 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 89 | ceph_osd_03: |
| 90 | expression: <<node_hostname>>__equals__osd2 |
| 91 | cluster_param: |
| 92 | ceph_osd_node03_address: |
| 93 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 94 | single_address: |
| 95 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 96 | ceph_mon_01: |
Ondrej Smola | de178b5 | 2017-08-24 11:18:16 +0200 | [diff] [blame] | 97 | expression: <<node_hostname>>__equals__cmn01 |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 98 | cluster_param: |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 99 | ceph_mon_node01_address: |
| 100 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 101 | single_address: |
| 102 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 103 | ceph_mon_02: |
| 104 | expression: <<node_hostname>>__equals__cmn02 |
| 105 | cluster_param: |
| 106 | ceph_mon_node02_address: |
| 107 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 108 | single_address: |
| 109 | value_template: <<node_control_ip>> |
Ondrej Smola | 1cd5707 | 2017-08-14 15:22:05 +0200 | [diff] [blame] | 110 | ceph_mon_03: |
| 111 | expression: <<node_hostname>>__equals__cmn03 |
| 112 | cluster_param: |
| 113 | ceph_mon_node03_address: |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 114 | value_template: <<node_control_ip>> |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 115 | single_address: |
| 116 | value_template: <<node_control_ip>> |
Ales Komarek | 56a8e3f | 2017-08-08 15:58:37 +0200 | [diff] [blame] | 117 | ceph_cfs: |
| 118 | expression: <<node_hostname>>__startswith__cfs |
| 119 | node_class: |
| 120 | value_template: |
| 121 | - cluster.<<node_cluster>>.ceph.cfs |
Jiri Broulik | 010181f | 2017-10-10 08:31:55 +0200 | [diff] [blame] | 122 | cluster_param: |
| 123 | single_address: |
| 124 | value_template: <<node_control_ip>> |