[debian] make optional cw_basecubes installation (closes #5437903)
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Fri, 05 Jun 2015 11:30:41 +0200
changeset 36 581a383990fa
parent 35 f1627c0a65fd
child 37 3a1147a825c5
[debian] make optional cw_basecubes installation (closes #5437903)
cubicweb/init.sls
pillar.example
--- a/cubicweb/init.sls	Fri Jun 05 11:25:26 2015 +0200
+++ b/cubicweb/init.sls	Fri Jun 05 11:30:41 2015 +0200
@@ -46,6 +46,7 @@
     - require:
       - pkg: cw-logilab-deps
 
+{% if pillar['cw-basecubes']['install'] %}
 cw-basecubes:
   pkg.installed:
     - pkgs:
@@ -61,6 +62,7 @@
     - fromrepo: {{pillar.get('cubicweb_repo', 'production')}}
     - require:
       - pkg: cw-core
+{% endif %}
 
 cw-web:
   pkg.installed:
--- a/pillar.example	Fri Jun 05 11:25:26 2015 +0200
+++ b/pillar.example	Fri Jun 05 11:30:41 2015 +0200
@@ -32,7 +32,7 @@
 ## Declare your cubicweb applications there
 cubicweb_apps:
   www.cubicweb.org:
-    demo1: 
+    demo1:
       database:
         name: cw_blog
         user: logidemo
@@ -40,7 +40,7 @@
         host: localhost
         port: 5432
       cwapp:
-        basepath: /demo/blog # will be served as http(s)://www.cubicweb.org/demo/blog 
+        basepath: /demo/blog # will be served as http(s)://www.cubicweb.org/demo/blog
         port: 9090
         adminuser: admin
         adminpass: admin
@@ -60,7 +60,7 @@
         adminpass: admin
         cubes:
           blog: cubicweb-blog
-      apache: | 
+      apache: |
         #additional configuration specific to demo2
 
   test_app:
@@ -75,3 +75,6 @@
         adminpass: admin
         cubes:
           blog: cubicweb-blog: 1.9.7-1 # be careful, no version depency checks are done there
+## install base cw cubes
+cw-basecubes:
+  install: True
\ No newline at end of file