Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. munin-packages:
  2. pkg.installed:
  3. - pkgs:
  4. - munin-node
  5. - order: {{ jinjamap.munin.order }}
  6.  
  7. munin-sh-file:
  8. file.managed:
  9. - name: /root/salt/munin.sh
  10. - source: salt://app/munin/munin.sh
  11. - template: jinja
  12. - user: root
  13. - group: root
  14. - mode: 755
  15. - makedirs: True
  16. - require:
  17. - pkg: munin-packages
  18.  
  19. munin-run-munin-sh:
  20. cmd.wait:
  21. - name: /root/salt/munin.sh
  22. - cwd: /root
  23. - watch:
  24. - file: munin-sh-file
  25.  
  26. munin-service:
  27. service:
  28. - name: munin-node
  29. - running
  30. - enable: True
  31. - watch:
  32. - cmd: munin-run-munin-sh
  33.  
  34.  
  35.  
  36. ===============================================================================
  37.  
  38.  
  39.  
  40. Data failed to compile:
  41. ----------
  42. Rendering SLS app.munin failed, render error: expected token 'comma', got 'string'; line 17 in template:
  43.  
  44. ---
  45. [...]
  46. - source: salt://app/munin/munin.sh
  47. - template: jinja
  48. - user: root
  49. - group: root
  50. - mode: 755
  51. - makedirs: True <======================
  52. - require:
  53. - pkg: munin-packages
  54.  
  55. munin-run-munin-sh:
  56. cmd.wait:
  57. [...]
  58. ---
  59. Traceback (most recent call last):
  60. File "/usr/lib/python2.6/site-packages/salt/state.py", line 1944, in render_state
  61. rendered_sls=mods
  62. File "/usr/lib/python2.6/site-packages/salt/template.py", line 69, in compile_template
  63. ret = render(input_data, env, sls, **render_kwargs)
  64. File "/usr/lib/python2.6/site-packages/salt/renderers/jinja.py", line 42, in render
  65. tmp_data.get('data', 'Unknown render error in jinja renderer')
  66. SaltRenderError: expected token 'comma', got 'string'; line 17 in template:
  67.  
  68. ---
  69. [...]
  70. - source: salt://app/munin/munin.sh
  71. - template: jinja
  72. - user: root
  73. - group: root
  74. - mode: 755
  75. - makedirs: True <======================
  76. - require:
  77. - pkg: munin-packages
  78.  
  79. munin-run-munin-sh:
  80. cmd.wait:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement