Skip to content

Commit

Permalink
Use map.jinja content in init.sls
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Vereschagin committed Feb 16, 2014
1 parent b1dbff0 commit 5c18009
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions template/init.sls
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
foo-common:
pkg.installed
{% from "template/map.jinja" import template with context %}
{% if grains['id'] == pillar['template']['master'] %}
foo-service:
template:
pkg:
- installed
- name: {{ template.pkg }}
service:
- running
- name: {{ template.service }}
- enable: True

{% endif %}

0 comments on commit 5c18009

Please sign in to comment.