Bundling the grains generation in a script for Travis
This commit is contained in:
parent
b6d23d640e
commit
73e9342004
2 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,7 @@ install:
|
|||
# Copy these states
|
||||
- sudo mkdir -p /srv/salt/states
|
||||
- sudo cp -r salty/base/* /srv/salt/states
|
||||
- sudo cp .travis/minion /etc/salt/minion
|
||||
- sudo cp -r .travis/* /etc/salt/
|
||||
- sudo service salt-minion restart
|
||||
|
||||
# Additional debug help
|
||||
|
@ -19,7 +19,7 @@ install:
|
|||
|
||||
# See what kind of travis box you're on
|
||||
# to help with making your states compatible with travis
|
||||
#- sudo salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$HOME\" }"
|
||||
- sudo sh grains.sh
|
||||
|
||||
script:
|
||||
- sudo salt-call --local --config=./ --state-output=changes --log-level=quiet state.apply
|
||||
|
|
3
.travis/grains.sh
Normal file
3
.travis/grains.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$home\" }"
|
Loading…
Reference in a new issue