Last active
August 29, 2015 13:55
-
-
Save rgbkrk/8696246 to your computer and use it in GitHub Desktop.
Travis CI for Salt States
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
language: python | |
python: | |
- '2.7' | |
before_install: | |
# Make sure we're in a good state, then install salt via salt bootstrap | |
# -- Development mode, because danger is fun (I mean, it's good to stay up to date with salt) | |
- sudo apt-get update | |
- curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop | |
install: | |
# Copy the states | |
- sudo mkdir -p /srv/salt/states | |
- sudo cp -r . /srv/salt/states | |
- sudo cp .travis/minion /etc/salt/minion | |
- sudo service salt-minion restart | |
# Additional debug help | |
- sudo cat /var/log/salt/* | |
# See what kind of travis box you're on | |
# to help with making your states compatible with travis | |
- sudo salt-call grains.items --local | |
script: | |
- sudo salt-call state.show_highstate --local |
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
# Within the repo, this should exist at .travis/minion (gists won't allow subdirs) | |
file_client: local | |
file_roots: | |
base: | |
- /srv/salt/states |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment