-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement minimal and possible salt-state validation on travis
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
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 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,40 @@ | ||
#! /bin/bash | ||
|
||
# this script is intended to be executed via PRs travis CI | ||
set -e | ||
|
||
# 01: hana01 | ||
|
||
echo "===========================================" | ||
echo " Using primary host " | ||
echo "===========================================" | ||
|
||
cp pillar.example example/pillar/hana.sls | ||
cp example/salt/top.sls . | ||
|
||
cat >grains <<EOF | ||
host: hana01 | ||
EOF | ||
|
||
cat >minion <<EOF | ||
root_dir: $PWD | ||
id: travis | ||
EOF | ||
|
||
sudo salt-call state.show_highstate --local --file-root=./ --config-dir=. --pillar-root=example/pillar --retcode-passthrough -l debug | ||
|
||
echo | ||
echo "===========================================" | ||
echo " Using secondary host " | ||
echo "===========================================" | ||
|
||
cat >grains <<EOF | ||
host: hana02 | ||
EOF | ||
|
||
cat >minion <<EOF | ||
root_dir: $PWD | ||
id: travis | ||
EOF | ||
|
||
sudo salt-call state.show_highstate --local --file-root=./ --config-dir=. --pillar-root=example/pillar --retcode-passthrough -l debug |
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