diff options
author | Mark Lee <hg@lazymalevolence.com> | 2014-05-20 12:21:44 -0700 |
---|---|---|
committer | Mark Lee <hg@lazymalevolence.com> | 2014-05-20 12:21:44 -0700 |
commit | a8fa6daa37b247251dde54e40f8d8feb863eddfe (patch) | |
tree | e98b0bfefbfa17bbb836fb54eeb06f4f93e8ba4d /tests | |
parent | 18f605604a9d2e2195973282b98feda330b87977 (diff) | |
download | pygments-a8fa6daa37b247251dde54e40f8d8feb863eddfe.tar.gz |
Add YAML+Jinja (Saltstack state) lexer
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/example.sls | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/examplefiles/example.sls b/tests/examplefiles/example.sls new file mode 100644 index 00000000..824700e7 --- /dev/null +++ b/tests/examplefiles/example.sls @@ -0,0 +1,51 @@ +include: + - moosefs + +{% for mnt in salt['cmd.run']('ls /dev/data/moose*').split() %} +/mnt/moose{{ mnt[-1] }}: + mount.mounted: + - device: {{ mnt }} + - fstype: xfs + - mkmnt: True + file.directory: + - user: mfs + - group: mfs + - require: + - user: mfs + - group: mfs +{% endfor %} + +/etc/mfshdd.cfg: + file.managed: + - source: salt://moosefs/mfshdd.cfg + - user: root + - group: root + - mode: 644 + - template: jinja + - require: + - pkg: mfs-chunkserver + +/etc/mfschunkserver.cfg: + file.managed: + - source: salt://moosefs/mfschunkserver.cfg + - user: root + - group: root + - mode: 644 + - template: jinja + - require: + - pkg: mfs-chunkserver + +mfs-chunkserver: + pkg: + - installed +mfschunkserver: + service: + - running + - require: +{% for mnt in salt['cmd.run']('ls /dev/data/moose*') %} + - mount: /mnt/moose{{ mnt[-1] }} + - file: /mnt/moose{{ mnt[-1] }} +{% endfor %} + - file: /etc/mfschunkserver.cfg + - file: /etc/mfshdd.cfg + - file: /var/lib/mfs |