Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse Salt gitfs to keep master synced with repo #264
Comments
|
+1 Is this feature new? I don't remember seeing this back when we set this up. |
|
This has been around for a long time, although I'm not sure exactly when it was added (at least as old as I'm not yet sure about how this would interact with the workflow of iterating on changes directly on the |
https://docs.saltstack.com/en/2015.5/topics/tutorials/gitfs.html says it's the preferred method. Working on servo#264.
https://docs.saltstack.com/en/2015.5/topics/tutorials/gitfs.html says it's the preferred method. Working on servo#264.
https://docs.saltstack.com/en/2015.5/topics/tutorials/gitfs.html says it's the preferred method. Working on servo#264.
|
If we don't have a local filesystem we can edit, what's the procedure for doing test cc @edunham |
|
We can pass a command line flag to the That being said, testing in production makes me uneasy and I'd prefer to build a better testing story for our configurations, both making testing inside Vagrant easier and adding more automated functional tests. It's just too easy to forget to pass a command line flag to Salt (I've done this more times on my own setup than I'd like to admit). |
|
Hit the wrong button, whoops. |
|
FYI, I've been looking into this for #350. The solution I mentioned above (custom config directories) won't work, but I've found an alternative solution. See #350 for the details. |
Salt the Salt master Use Salt to install the Salt master. The Salt master will get restart on configuration changes, but will need to be manually restarted on package changes to allow for proper ordering of updating. (Salt masters must be updated before Salt minions.) Use Jinja to generate the config file YAML directly, preventing typos in the master config file and providing access to master configuration options in the SLS file (e.g. the file_roots locations). Incorporates and thus fixes #298. TODO: - [x] Add gitfs support. Fixes #264. - [x] Add _modules/ dir and backport `launchctl.py` module TODO after landing: - [ ] Add master install instructions to the wiki - [ ] Update Salt-inside-Vagrant usage instructions on the wiki After I finish the WIP tasks, landing this will unblock a bunch of other things that need the `launchctl.py` module (upgraded ssh, salt-minion salting, upgrading salt, etc.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/350) <!-- Reviewable:end -->
Docs: https://docs.saltstack.com/en/2015.5/topics/tutorials/gitfs.html
Salt has a built-in backend that uses a git repo (such as this one) to provide the files in the /srv/salt tree (the fileserver).
We should use it instead of manually
git pulling on the master.