Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2017 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/58d94201630530404ea11ae2f7144a28 to your computer and use it in GitHub Desktop.
Save anonymous/58d94201630530404ea11ae2f7144a28 to your computer and use it in GitHub Desktop.
saltmaster includetest # find .
.
./ab
./ab/astate.sls
./ab/init.sls
saltmaster includetest # cat ab/init.sls
include:
- .astate
saltmaster includetest # cat ab/astate.sls
Astate:
test.configurable_test_state:
- result: True
- changes: False
saltmaster includetest # salt 'saltminion1' state.sls includetest.ab
saltminion1:
----------
ID: Astate
Function: test.configurable_test_state
Result: True
Comment:
Started: 09:00:18.583291
Duration: 0.482 ms
Changes:
Summary
------------
Succeeded: 1
Failed: 0
------------
Total states run: 1
saltmaster includetest # salt 'saltminion1' state.sls includetest.ab.init
saltminion1:
Data failed to compile:
----------
Specified SLS includetest.ab.init.astate in saltenv base is not available on the salt master or through a configured fileserver
ERROR: Minions returned with non-zero exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment