pillar.example
author Arthur Lutz <arthur.lutz@logilab.fr>
Wed, 14 Dec 2016 15:12:19 +0100
changeset 102 6a34a4eb10ad
parent 92 2598a63800b3
child 113 e7bdd07a067a
permissions -rw-r--r--
[cubicweb/uwsgi] optionnal deploy of wsgi file (for looping tasks)

## Apache related configurations
apache:
  disable_default: False # set to True to disable default apache configuration (000-default)
  modules: # this requires the https://github.com/saltstack-formulas/apache-formula formula
    enabled:
       - rewrite # list of modules to enable
  vhost_conf: |
    # insert inline configuration
    # lines here, valid for all vhosts

locales:
  present:
    - fr_FR.UTF-8
    - en_US.UTF-8
  system: en_US.UTF-8

postgresql:
#  version: 9.4
#set true to make postresql listen on the network
#  listen_tcp: False
#pg_hdba lines to insert
#   pg_hba_lines: |
#    host    all             all             10.1.1.3/32            md5

cubicweb_repo: production # set to acceptance if you want more recent versions of cubicweb

## you may specify a precise cw version (package version). If set, the
## 'cubicweb_repo' option is ignored
#cubicweb_version: 3.20.5-1

## You can add extra repository sources
## when extra_sources is defined and debian_pkgrepos is undefined the "all dependencies are
## availble in that extra source" scenario is used, no public cubicweb debian repository
## will be configured. Changes pending from https://www.cubicweb.org/ticket/5714468
#extra_sources:
#  - deb https://user:password@domain.com/path/dists/ wheezy/
## you can specify your own repository sources from .sls definitions instead of logilab default
#debian_pkgrepos:
#  pkgrepository_name: # cf. logilab-public-production (id in the state file)
#    sls: pkgrepository # cf. logilab.public (id in of the .sls file, eg. logilab/publis.sls)

## Declare your cubicweb applications there
cubicweb_apps:
  www.cubicweb.org:
    demo1:
      database:
        name: cw_blog
        user: logidemo
        password: logidemo
        host: localhost
        lc_collate: us_US.UTF-8
        lc_ctype: us_US.UTF-8
        superuser: True # will create postgres user logidemo as superuser
        port: 5432
      cwapp:
        basepath: /demo/blog # will be served as http(s)://www.cubicweb.org/demo/blog
        port: 9090
        adminuser: admin
        adminpass: admin
        create_db: True # will execute cubiweb db-create
        cubes:
          blog: cubicweb-blog
      cwapp_config_options:
        WEB:
          base-url: http://base_url
      cwapp_uwsgi_options:
        workers: 2
        threads: 8
        #file: /etc/cubicweb.d/app/wsgiapp.py
      pyramid:
        sessions_secret: CHANGEME
        authtk_sessions_secret: CHANGEME
        authtk_persistent_secret: CHANGEME
        #includes:
        #  - cubes.app.extra
    demo2:
      database:
        name: cw_demo2
        user: logidemo
        password: logidemo
        host: db1
        port: 5432
      cwapp:
        basepath: /demo/demo2
        port: 9091
        adminuser: admin
        adminpass: admin
        cubes:
          blog: cubicweb-blog
      cwapp_config_options:
        WEB:
          base-url: http://base_url
      apache: |
        #additional configuration specific to demo2

  test_app:
    main:
      database:
        name: testapp
        user: testuser
        password: something cool
      cwapp:
        port: 8080
        adminuser: admin
        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