In this recipe, we are going to configure the environment and pillar paths for Salt to use when we mention environments while performing Salt operations. Ideally, any infrastructure should have environments for development, testing, QA, production, and so on, for isolation of respective code and a seamless workflow. Salt enables us to implement this in a few simple steps by providing options to define environments for states and pillars.
In the primary configuration
/etc/salt/master file, we will configure the section called
file_roots. Under this parameter option, we will name each environment we want to configure and the path of the directory that will contain the configuration ...