initialize locales
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Mon, 08 Jun 2015 18:05:38 +0200
changeset 42 1a739d7e5a37
parent 41 85e8d844ae44
child 43 854eb1b5998c
initialize locales
cubicweb/postgres/init.sls
--- a/cubicweb/postgres/init.sls	Mon Jun 08 15:41:04 2015 +0200
+++ b/cubicweb/postgres/init.sls	Mon Jun 08 18:05:38 2015 +0200
@@ -1,5 +1,12 @@
 {% set psql_version=pillar.get('postgresql_version', 9.1) %}
 
+# TODO: allow to declare locales in pillar
+
+fr_FR.UTF-8:
+  locale.present
+en_US.UTF-8:
+  locale.system
+
 pg-server:
   pkg.installed:
     - pkgs:
@@ -64,6 +71,7 @@
     - require:
       - postgres_user: pg-{{vhostname}}-{{name}}
       - service: pg-server
+      - locale: fr_FR.UTF-8
   postgres_extension.present:
     - name: plpythonu
   postgres_user: