Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- salt "*" state.sls patch -v
- Executing job with jid 20140129180511268245
- -------------------------------------------
- ip-10-146-43-137.ap-northeast-1.compute.internal:
- Data failed to compile:
- ----------
- Name service in sls patch is not a dictionary
- Here is the formula
- /opt/tomcat/webapps/sample/WEB-INF/lib/a.jar:
- file.managed:
- - source: salt://patches/a.jar
- - user: root
- - group: root
- - mode: 644
- - template: jinja
- - defaults:
- custom_var: "default value"
- other_var: 123
- {% if grains['os'] == 'Ubuntu' %}
- - context:
- custom_var: "override"
- {% endif %}
- service:
- - restart
- - require:
- - pkg: tomcat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement