Advertisement
Guest User

Untitled

a guest
Jan 29th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. salt "*" state.sls patch -v
  2. Executing job with jid 20140129180511268245
  3. -------------------------------------------
  4.  
  5. ip-10-146-43-137.ap-northeast-1.compute.internal:
  6. Data failed to compile:
  7. ----------
  8. Name service in sls patch is not a dictionary
  9.  
  10.  
  11.  
  12. Here is the formula
  13.  
  14. /opt/tomcat/webapps/sample/WEB-INF/lib/a.jar:
  15. file.managed:
  16. - source: salt://patches/a.jar
  17. - user: root
  18. - group: root
  19. - mode: 644
  20. - template: jinja
  21. - defaults:
  22. custom_var: "default value"
  23. other_var: 123
  24. {% if grains['os'] == 'Ubuntu' %}
  25. - context:
  26. custom_var: "override"
  27. {% endif %}
  28. service:
  29. - restart
  30. - require:
  31. - pkg: tomcat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement