Salt top.sls does not update on `salt-run fileserver.update` with gitfs
Solution 1:
The reason for the error is that salt considers all branches, then merges all (!) branches to compile the final top.sls. I had an old branch which was a couple commits behind master, and so still referenced webserver.sls.
The solution is pretty simple: just add the following to /etc/salt/master
:
gitfs_env_whitelist:
- master
Or, if your primary branch isn't master, replace master with your branch name.
Solution 2:
The reason is that salt merges all branches to compile the final top.sls. I was able to fix it by adding this to /etc/salt/master
:
gitfs_env_whitelist:
- base
Since Salt maps the master
branch to the base
environment (thanks to gitfs_base
), the correct env
to whitelist is base
, not master
.