Last active
August 29, 2015 14:13
-
-
Save jontyneedham/eedf8cf0228db38c3eff to your computer and use it in GitHub Desktop.
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
#!pyobjects | |
Pkg.installed("git") | |
if pillar('webserver_role')=='hrbdf': | |
Git.latest('http://git_url.git', target='/path/to/my/target_dir') |
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
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