salt-formulas / reclass

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

add node env override #102

Open AndrewPickford opened 3 years ago

AndrewPickford commented 3 years ago

Add the ability to override the environment defined in the node file. Running reclass standalone this is done with a new command line option '--environment'. For running with salt this allows the saltenv or pillarenv parameters in a salt command to override the environment of a node. Using the override with salt requires a custom salt reclass adapter which can be found in the new contrib directory (details of how to use added to the docs).