Skip to content

Instantly share code, notes, and snippets.

@jontyneedham
Last active August 29, 2015 14:13
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 jontyneedham/eedf8cf0228db38c3eff to your computer and use it in GitHub Desktop.
Save jontyneedham/eedf8cf0228db38c3eff to your computer and use it in GitHub Desktop.
#!pyobjects
Pkg.installed("git")
if pillar('webserver_role')=='hrbdf':
Git.latest('http://git_url.git', target='/path/to/my/target_dir')
sudo salt 'hrbdf' state.highstate
my_state:
Data failed to compile:
----------
Rendering SLS git failed, render error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2408, in render_state
sls, rendered_sls=mods
File "/usr/lib/python2.7/dist-packages/salt/template.py", line 84, in compile_template
ret = render(input_data, saltenv, sls, **render_kwargs)
File "/usr/lib/python2.7/dist-packages/salt/renderers/pyobjects.py", line 449, in render
exec final_template in _globals, _locals
File "<string>", line 6, in <module>
File "/usr/lib/python2.7/dist-packages/salt/utils/pyobjects.py", line 293, in __getattr__
raise AttributeError
AttributeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment