[cubicweb] extract non-cw package dependencies in a dedicated sls
authorDavid Douard <david.douard@logilab.fr>
Tue, 19 May 2015 14:09:45 +0200
changeset 23 89ecb6de011e
parent 22 6d1c14929182
child 24 d3c95626e76c
[cubicweb] extract non-cw package dependencies in a dedicated sls
cubicweb/dependencies.sls
cubicweb/init.sls
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb/dependencies.sls	Tue May 19 14:09:45 2015 +0200
@@ -0,0 +1,7 @@
+
+cw-six-deps:
+  pkg.latest:
+    - name : python-six
+{% if grains['oscodename'] == 'wheezy' %}
+    - fromrepo: wheezy-backports
+{% endif %}
--- a/cubicweb/init.sls	Thu May 07 19:14:28 2015 +0200
+++ b/cubicweb/init.sls	Tue May 19 14:09:45 2015 +0200
@@ -1,14 +1,6 @@
 include:
   - logilab.public
-
-{% if grains['oscodename'] == 'wheezy' %}
-cw-six-deps:
-  pkg.latest:
-    - name : python-six
-    - fromrepo: wheezy-backports
-    - require_in: 
-        - pkg: cw-logilab-deps 
-{% endif %}
+  - cubicweb.dependencies
 
 cw-logilab-deps:
   pkg.installed: