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
I can not see how to use this has a git submodule.
I'm forced to create a state to override all salt:// declarations with include and extend to get things work.
Not being able to use this as submodule reduce the interest of the project from "plug and play" to "cherry pick". And cherry pick won't bring contributions..
I've found no solution for now. But I'm new to saltstack. I may have missed something.
It didn't work like that for me.
In my file_roots I did git submodule add https://github.com/saltstack-formulas/salt.git
So my tree looks like that:
In my top.sls I must call salt.salt.minion.
But that's not so annoying.
But the fact salt:// targets file_roots/, is. It fails to find salt://salt/files/minion.
I must create a file_roots/minion to override ``salt://` declarations:
Ah, right, forgot the second salt in there. Really we should probably reorganize this formula to be in the root directory of the repo, so when you add it as a submodule it only adds one directory of depth. I think that's probably the best solution, and should fix the formula. I'll change that shortly.
Activity
basepi commentedon Jul 16, 2013
If you put this formula as a subdirectory to your file_roots, then you can put something like this in your top.sls:
Now both the minion and master states will be run, and you can keep them in their own subdirectory or submodule.
Does that answer your question?
AntoineCezar commentedon Jul 17, 2013
It didn't work like that for me.
In my file_roots I did
git submodule add https://github.com/saltstack-formulas/salt.gitSo my tree looks like that:
In my top.sls I must call
salt.salt.minion.But that's not so annoying.
But the fact
salt://targetsfile_roots/, is. It fails to findsalt://salt/files/minion.I must create a
file_roots/minionto override ``salt://` declarations:And use it instead. I hope there must be another way.
basepi commentedon Jul 17, 2013
Ah, right, forgot the second
saltin there. Really we should probably reorganize this formula to be in the root directory of the repo, so when you add it as a submodule it only adds one directory of depth. I think that's probably the best solution, and should fix the formula. I'll change that shortly.Move everything to root directory for submodule use, Fix saltstack-fo…
Merge pull request #5 from basepi/master