[instances] add all-in-one options
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Tue, 09 Jun 2015 18:12:51 +0200
changeset 43 854eb1b5998c
parent 42 1a739d7e5a37
child 44 74bfdb78987d
[instances] add all-in-one options
cubicweb/instances.sls
pillar.example
--- a/cubicweb/instances.sls	Mon Jun 08 18:05:38 2015 +0200
+++ b/cubicweb/instances.sls	Tue Jun 09 18:12:51 2015 +0200
@@ -55,8 +55,7 @@
   ini.options_present:
     - name: /etc/cubicweb.d/{{name}}/all-in-one.conf
     - sections:
-        WEB:
-          base-url: http://{{vhostname}}
+        {{ config.get('cwapp_config_options', {}) }}
  {% endfor %}
 {% endfor %}
 
--- a/pillar.example	Mon Jun 08 18:05:38 2015 +0200
+++ b/pillar.example	Tue Jun 09 18:12:51 2015 +0200
@@ -50,6 +50,9 @@
         create_db: True # will execute cubiweb db-create
         cubes:
           blog: cubicweb-blog
+      cwapp_config_options:
+        WEB:
+          base-url: http://base_url
     demo2:
       database:
         name: cw_demo2
@@ -64,6 +67,9 @@
         adminpass: admin
         cubes:
           blog: cubicweb-blog
+      cwapp_config_options:
+        WEB:
+          base-url: http://base_url
       apache: |
         #additional configuration specific to demo2