Advertisement
Guest User

Untitled

a guest
Apr 11th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. configure_tomcat_webapp:
  2. file.managed:
  3. - source: salt://experiment/test.template
  4. - template: jinja
  5. - user: root
  6. - group: root
  7. - mode: 0644
  8.  
  9. test.template has
  10. Address {{ grains['fqdn_ip4'][0] }}
  11.  
  12. when I run this, I get this:
  13. [root@chm-salt-master experiment]# salt 'chm-test01' state.apply
  14. chm-test01:
  15. ----------
  16. ID: configure_tomcat_webapp
  17. Function: file.managed
  18. Result: False
  19. Comment: Specified file configure_tomcat_webapp is not an absolute path
  20. Started: 20:27:05.195290
  21. Duration: 8.094 ms
  22. Changes:
  23.  
  24. Summary for chm-test01
  25. ------------
  26. Succeeded: 0
  27. Failed: 1
  28. ------------
  29. Total states run: 1
  30. ERROR: Minions returned with non-zero exit code
  31. [root@chm-salt-master experiment]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement