forked from servo/saltfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Salt install/configure Vagrant 1.8 compatible
The original Vagrantfile was meant to be used with Vagrant 1.7.4, but required 2 patches to Vagrant for proper functionality, which I had submitted as pull requests. Vagrant has since released a new version, 1.8.0, which has updates the Salt provisioner. PR status: - [One PR](hashicorp/vagrant#6474) was merged - [Another PR](hashicorp/vagrant#6473) was not The second PR was rejected "in favor" of [a third PR](hashicorp/vagrant#6073) which simply removed the config_dir option entirely instead of using sudo to be able to write in a priveleged directory. [An unrelated PR](https://github.com/mitchellh/vagrant/pull/6382/files) removed a second option we had been using: install_command. These changes in Vagrant were due to incompabilities with the official Salt bootstrap script, so this commit brings the install_salt script's behavior closer to that of the official Salt bootstrap script as well. Namely, it can now copy over configuration files as part of installation, using the same flags as the official script. The configure_salt script is now used just to setup the salt and pillar roots on Travis (this is accomplished via shared folders in Vagrant), hence the renaming. With this commit and the new Vagrant version, the included Vagrantfile now works with a vanilla Vagrant 1.8.0 install, no patching needed.
- Loading branch information
Showing
5 changed files
with
61 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
setup_salt_roots () { | ||
sudo mkdir -p /srv/salt | ||
sudo cp -r . /srv/salt/states | ||
sudo cp -r .travis/test_pillars /srv/salt/pillars | ||
} | ||
|
||
setup_salt_roots "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters