Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- munin-packages:
- pkg.installed:
- - pkgs:
- - munin-node
- - order: {{ jinjamap.munin.order }}
- munin-sh-file:
- file.managed:
- - name: /root/salt/munin.sh
- - source: salt://app/munin/munin.sh
- - template: jinja
- - user: root
- - group: root
- - mode: 755
- - makedirs: True
- - require:
- - pkg: munin-packages
- munin-run-munin-sh:
- cmd.wait:
- - name: /root/salt/munin.sh
- - cwd: /root
- - watch:
- - file: munin-sh-file
- munin-service:
- service:
- - name: munin-node
- - running
- - enable: True
- - watch:
- - cmd: munin-run-munin-sh
- ===============================================================================
- Data failed to compile:
- ----------
- Rendering SLS app.munin failed, render error: expected token 'comma', got 'string'; line 17 in template:
- ---
- [...]
- - source: salt://app/munin/munin.sh
- - template: jinja
- - user: root
- - group: root
- - mode: 755
- - makedirs: True <======================
- - require:
- - pkg: munin-packages
- munin-run-munin-sh:
- cmd.wait:
- [...]
- ---
- Traceback (most recent call last):
- File "/usr/lib/python2.6/site-packages/salt/state.py", line 1944, in render_state
- rendered_sls=mods
- File "/usr/lib/python2.6/site-packages/salt/template.py", line 69, in compile_template
- ret = render(input_data, env, sls, **render_kwargs)
- File "/usr/lib/python2.6/site-packages/salt/renderers/jinja.py", line 42, in render
- tmp_data.get('data', 'Unknown render error in jinja renderer')
- SaltRenderError: expected token 'comma', got 'string'; line 17 in template:
- ---
- [...]
- - source: salt://app/munin/munin.sh
- - template: jinja
- - user: root
- - group: root
- - mode: 755
- - makedirs: True <======================
- - require:
- - pkg: munin-packages
- munin-run-munin-sh:
- cmd.wait:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement