Skip to content

Instantly share code, notes, and snippets.

@krak3n
Created August 10, 2014 14:32
Show Gist options
  • Save krak3n/967a4fe638e42e8a832f to your computer and use it in GitHub Desktop.
Save krak3n/967a4fe638e42e8a832f to your computer and use it in GitHub Desktop.
SaltStack PyDSL|Stateconf renderers
#!pydsl|stateconf -ps
state('.repo') \
.git.latest(
name='https://github.com/itagenten/tree',
rev='json',
target='/tmp/tree')
state('.make') \
.cmd.wait(
name='make',
user='root',
cwd='/tmp/tree') \
.watch(git='.repo')
state('.install') \
.cmd.wait(
name='make install',
user='root',
cwd='/tmp/tree') \
.watch(cmd='.make')
# vim: set ft=python ts=4 sw=4:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment