Filip Pytloun | 49768a4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
| 2 | ======= |
| 3 | reclass |
| 4 | ======= |
| 5 | |
| 6 | reclass is an “external node classifier” (ENC) as can be used with automation tools, such as Puppet, Salt, and Ansible. It is also a stand-alone tool for merging data sources recursively. |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Reclass storage with data fetched from git |
| 12 | |
| 13 | .. code-block:: yaml |
| 14 | |
| 15 | reclass: |
| 16 | storage: |
| 17 | enabled: true |
| 18 | base_dir: /srv/reclass |
| 19 | data_source: |
| 20 | engine: git |
| 21 | address: git@repo.domain.com:reclass/reclass-project.git |
| 22 | revision: master |
| 23 | |
| 24 | Reclass storage with local data source |
| 25 | |
| 26 | .. code-block:: yaml |
| 27 | |
| 28 | reclass: |
| 29 | storage: |
| 30 | enabled: true |
| 31 | base_dir: /srv/reclass |
| 32 | data_source: |
| 33 | engine: local |
| 34 | |
| 35 | Reclass storage with arbitrary class mappings |
| 36 | |
| 37 | .. code-block:: yaml |
| 38 | |
| 39 | reclass: |
| 40 | storage: |
| 41 | enabled: true |
| 42 | ... |
| 43 | class_mappings: |
| 44 | - target: '\*' |
| 45 | class: default |
| 46 | |
| 47 | Read more |
| 48 | ========= |
| 49 | |
| 50 | * http://reclass.pantsfullofunix.net/index.html |
| 51 | * http://reclass.pantsfullofunix.net/operations.html |
| 52 | * http://ryandlane.com/blog/2014/12/10/reloading-grains-and-pillars-during-a-saltstack-run/ |