You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environments dev and test refer to the same directory under file_roots. Running state.show_highstate reports a number of "duplicate" state ids between the two environments.
Although not urgent, the environment parameter on highstate/show_highstate would make testing an entire collection of states a little easier.
The module state.sls does include environment parameters which is a good stop-gap.
All states are developed in a single directory for convenience. The top file then selects certain states for each environment. For example a dev environment uses sqlite on a single box which is replaced with a dedicated postgres server in the test environment.
However running state.highstate lumps all environments into a single namespace.
$ salt-call --local state.show_highstate
local:
- Detected conflicting IDs, SLS IDs need to be globally unique.
- The conflicting ID is "project.install::django_projects" and is found in SLS "test:project.install" and SLS "dev:project.install"
...repeat above for every state under file_roots...
785829f works ok for me. Several other execution functions could use environment parameters (e.g. state.show_highstate). I'll try to put together a decent pull request with some tests, but it probably won't make 0.15.
Activity
thatch45 commentedon Apr 11, 2013
Ahh, I follow.
The minion config can statically set the environment, this should be easy to add, gimme a second
thatch45 commentedon Apr 11, 2013
@salticus can you test this out, it should work, if not let me know and I will spend more time refining
salticus commentedon Apr 22, 2013
785829f works ok for me. Several other execution functions could use environment parameters (e.g. state.show_highstate). I'll try to put together a decent pull request with some tests, but it probably won't make 0.15.
thatch45 commentedon Apr 22, 2013
Thanks, I will wait on your pull req!