cleanup #f97e78e5b74d using jinja ifs
authorPaul Tonelli <paul.tonelli@logilab.fr>
Wed, 22 May 2013 18:38:43 +0200
changeset 141 638c1ec12cbf
parent 140 539011bcde6c
child 142 5cc4bcca328b
cleanup #f97e78e5b74d using jinja ifs
update.sls
--- a/update.sls	Thu May 23 19:05:40 2013 +0200
+++ b/update.sls	Wed May 22 18:38:43 2013 +0200
@@ -28,13 +28,14 @@
     - require:
         - file.sed: /etc/apt/sources.list
 
-grains_unbugged:
+{% if salt['grains.item']('saltversion') < '0.14.1' %}
+/usr/share/pyshared/salt/modules/grains.py:
     file.managed:
-        - name: /usr/share/pyshared/salt/modules/grains.py
         - source: salt://others/grains.py
-        - mode: 755
+        - mode: 644
         - require:
             - pkg: my_pkgs
+{% endif %}
    
 {% if 'ami.hg_address_server' in grains %}
 hg_code: