Puppet Class: couchdb::params

Inherited by:
couchdb
couchdb::config
Defined in:
manifests/params.pp

Overview

Class: couchdb::params

The couchdb configuration settings.

Parameters:

Actions:

Requires:

Sample Usage:



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/params.pp', line 13

class couchdb::params {

  $admin_name                 = 'admin'
  $admin_password             = 'admin'
  $allow_jsonp                = false
  $authentication_handlers    = '{couch_httpd_oauth, oauth_authentication_handler}, {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler}'
  $bind_address               = '192.168.33.11'
  $couchdb_conf_dir           = '/etc/couchdb'
  $database_dir               = '/var/lib/couchdb'
  $delayed_commits            = true
  $default_handler            = '{couch_httpd_db, handle_request}'
  $document_size_unit         = 'bytes'
  $include_sasl               = true
  $javascript                 = '/usr/bin/couchjs /usr/share/couchdb/server/main.js'
  $log_file                   = '/var/log/couchdb/couch.log'
  $log_level                  = 'info'
  $log_max_chunk_size         = '1000000'
  $max_attachment_chunk_size  = '4294967296 ;4GB'
  $max_connections            = '2048'
  $max_dbs_open               = '100'
  $os_process_timeout         = '5000 ; 5 seconds. for view and external servers.'
  $max_document_size          = '4294967296'
  $port                       = '5984'
  $reduce_limit               = true
  $require_valid_user         = false
  $secure_rewrites            = true
  $util_driver_dir            = '/usr/lib64/erlang/lib/couch-1.0.4/priv/lib'
  $uri_file                   = '/var/lib/couchdb/couch.uri'
  $vhost_global_handlers      = '_utils, _uuids, _session, _oauth, _users'
  $view_index_dir             = '/var/lib/couchdb'
  
  case $::osfamily {
    'RedHat': {
      $server_package_name = 'couchdb'
    }
    default: {
      fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only RedHat/CentOS is supported")
    }
  }
}