Bypass salt/top.sls
This commit is contained in:
parent
49863f448e
commit
a53085cb16
|
@ -6,6 +6,7 @@ env:
|
||||||
global:
|
global:
|
||||||
- BS_PIP_ALLOWED=1
|
- BS_PIP_ALLOWED=1
|
||||||
- BS_ECHO_DEBUG=1
|
- BS_ECHO_DEBUG=1
|
||||||
|
- SALT_ARGS="--local --retcode-passthrough --pillar-root=test/pillar --file-root=$PWD"
|
||||||
matrix:
|
matrix:
|
||||||
- STATE=rsyncd
|
- STATE=rsyncd
|
||||||
- STATE=rsyncd.config
|
- STATE=rsyncd.config
|
||||||
|
@ -21,14 +22,14 @@ install:
|
||||||
- sudo salt-call grains.items --local
|
- sudo salt-call grains.items --local
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sudo salt-call state.show_sls $STATE --local --retcode-passthrough --config-dir=test/etc
|
- sudo salt-call state.show_sls $STATE $SALT_ARGS
|
||||||
- sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc
|
- sudo salt-call state.sls $STATE $SALT_ARGS
|
||||||
|
|
||||||
# For debugging purpose
|
# For debugging purpose
|
||||||
- cat /etc/default/rsync
|
- cat /etc/default/rsync
|
||||||
- test -f /etc/rsyncd.conf && cat /etc/rsyncd.conf || echo "No rsyncd.conf"
|
- test -f /etc/rsyncd.conf && cat /etc/rsyncd.conf || echo "No rsyncd.conf"
|
||||||
|
|
||||||
# Idempotence check
|
# Idempotence check
|
||||||
- sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc > /tmp/second
|
- sudo salt-call state.sls $STATE $SALT_ARGS > /tmp/second
|
||||||
- cat /tmp/second
|
- cat /tmp/second
|
||||||
- bash -c '! grep -q "^Not Run:" /tmp/second'
|
- bash -c '! grep -q "^Not Run:" /tmp/second'
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
base:
|
|
||||||
'*':
|
|
||||||
- rsyncd
|
|
||||||
- rsyncd.config
|
|
Loading…
Reference in New Issue