salt-formulas / reclass

A recursive external node classifier for automation tools like Ansible, Puppet, and Salt
Other
53 stars 23 forks source link

allow class mappings to match on node name or node path #93

Closed AndrewPickford closed 4 years ago

AndrewPickford commented 4 years ago

This is a fix for issue #84, adding back the ability for class mappings to match against the path to a node file as well as the node name.

A configuration option is added to set the match method used by class mappings: class_mappings_match_path. If false (the default) the match is done against the node name and if true the match is done against the path.