50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
---
|
|
#
|
|
# Note that the Ubuntu package use as data directory /var/lib/couchdb
|
|
# That path is fixed inside /etc/init/couchdb.conf
|
|
#
|
|
# About replication
|
|
# - couchdb replication is defined per database with a document put in the _replication db
|
|
# on version 1.6
|
|
#
|
|
|
|
# Set it to true if you want the old 1.6 release
|
|
couchdb_use_old_package: False
|
|
|
|
couchdb_pkg_state: installed
|
|
couchdb_pkg_version: 1.6.1
|
|
couchdb_ppa: "ppa:couchdb/stable"
|
|
couchdb_pkgs:
|
|
- couchdb={{ couchdb_pkg_version }}
|
|
- curl
|
|
|
|
couchdb_enabled: True
|
|
couchdb_http_port: 5984
|
|
couchdb_https_port: 6984
|
|
couchdb_bind_address: 127.0.0.1
|
|
couchdb_local_ini_d: /etc/couchdb
|
|
couchdb_open_files: 4096
|
|
|
|
couchdb_set_admin: False
|
|
#couchdb_admin_pwd: Put it in a vault file
|
|
couchdb_admin_users:
|
|
- { user: 'admin', pwd: '{{ couchdb_admin_pwd }}', state: 'present' }
|
|
|
|
couchdb_default_options:
|
|
- { section: 'httpd', option: 'bind_address', value: '{{ couchdb_bind_address }}', state: 'present' }
|
|
- { section: 'couch_httpd_auth', option: 'require_valid_user', value: 'true', state: 'present' }
|
|
# - { section: 'httpd', option: 'config_whitelist', value: '"[{httpd,config_whitelist},{log,level}]"', state: 'present' }
|
|
- { section: 'log', option: 'include_sasl', value: 'true', state: 'present' }
|
|
|
|
couchdb_replicator_options:
|
|
- { section: 'replicator', option: 'db', value: '_replicator', state: 'present' }
|
|
- { section: 'replicator', option: 'use_checkpoints', value: 'true', state: 'present' }
|
|
- { section: 'replicator', option: 'worker_processes', value: '2', state: 'present' }
|
|
- { section: 'replicator', option: 'http_connections', value: '15', state: 'present' }
|
|
|
|
# Use this to set your options
|
|
#couchdb_custom_options:
|
|
# - { section: 'httpd', option: 'bind_address', value: '{{ couchdb_bind_address }}', state: 'present' }
|
|
# - { section: 'httpd', option: 'config_whitelist', value: '[{httpd,config_whitelist}, {log,level}]', state: 'present' }
|
|
|