summaryrefslogtreecommitdiff
path: root/manifests
AgeCommit message (Collapse)Author
2013-08-28couch:document - ensure state of a couch document - (feature #3485)Azul
also made the use of host, hostname and port a bit more consistent.
2013-08-28couch-doc-diff: diff of a document on the couch (feature 3485)Azul
Added the bash script couch-doc-diff. It runs a diff between the content of the couch document specified as the first parameter and the second parameter. Diff returns 0 if there is no difference. This way you can tell the data is already on the couch. The diff will ignore changes to whitespaces as these are usually irrelevant for security json docs.
2013-08-27notify service couchdb if configuration files changevarac
2013-08-27deploy default.ini from templatevarac
fixes https://leap.se/code/issues/3527
2013-08-21Merge remote-tracking branch 'origin/master'Azul
2013-08-15The /etc/couchdb directory wont exist until something creates it (such as ↵Micah Anderson
python-couchdb), and we cannot depend on those external resources. Because we setup a symlink to /etc/couchdb when the couchdb package gets installed it will try to write files there and will fail with the an error similar to the following: /Stage[main]/Couchdb::Base/File[/etc/couchdb/local.ini]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /etc/couchdb/local.ini.puppettmp_9420 at /srv/leap/puppet/modules/couchdb/manifests/base.pp:57 this change just manages the /etc/couchdb directory to make sure it exists before anything attempts to install there
2013-08-14default to undef so no command is run before the execAzul
2013-08-14use full path to curl for sake of consistencyAzul
2013-08-14only create couch database if it does not exist yetAzul
2013-08-14only create or update a user record if neededAzul
We test the user account by trying to use it to retrieve / on the couch which prints a welcome message if the user is valid and returns a 401 otherwise.
2013-08-13due to the fact that other packages (such as python-couchdb) create and ↵Micah Anderson
manage /etc/couchdb, having a file resource that creates a symlink out of /etc/couchdb doesn't work, for example you can get this error: err: /Stage[main]/Couchdb::Bigcouch/File[/etc/couchdb]/ensure: change from directory to link failed: Could not remove existing file (Bug #3447) This commit resolves this by instead managing /opt/bigcouch (as this is where the bigcouch package is installed) and creating a symlink *from* /opt/bigcouch/etc -> /etc/couchdb before the bigcouch package is installed. This way, when the package is installed, the files will be placed in the /etc/couchdb directory and other packages that would create/manage /etc/couchdb would not get confused.
2013-05-23add couchdb::bigcouch::add_node and couchdb::bigcouch::queryvarac
2013-05-23use {} when no data is passedvarac
2013-04-24Use pre-salted+hashed admin pw for couchdb (Feature #1941)varac
2013-04-24Use pre-salted+hashed user pw for couchdb (Feature #2324)varac
2013-04-23replace single with double quotes when creating db, also for default valuesvarac
2013-04-04fix syntax errorMicah Anderson
2013-04-04fix $ednp_port variable nameMicah Anderson
2013-04-04add $ednp_port parameter to configure the erlang distributed node protocol portMicah Anderson
2013-04-04clean-up commit: lint, standardize spacing, properly enclose variables, etcMicah Anderson
2013-03-31remove refresh_apt from apt::sources_list, it is already done by that defineMicah Anderson
2013-03-15really replace single with double quotes when creating dbvarac
2013-03-15replace single with double quotes when creating dbvarac
2013-03-14cloudant now have signed packagesvarac
2013-03-13install couchdb after apt-get updatevarac
2013-03-13moved cloudant bigcouch package repo to a seperate classvarac
2013-03-12Added Exec[wait_for_couchdb]varac
So Couchdb::Query and Couchdb::Update doesn't try to connect to couchdb before it is up and running. That fixes a nasty race condition, see Fix doc update error on puppetrun (Feature #1964).
2013-03-12Merge remote-tracking branch 'remotes/origin/feature/bigcouch'varac
Conflicts: manifests/init.pp
2013-03-12don't use runit provider for bigcouch (see #1959)varac
2013-03-11/etc/couchdb: install bigcouch package firstvarac
2013-03-11include bigcouch::debian in init.pp instead of bigcouch.ppvarac
2013-03-10mostly finished bigcouch supportvarac
2013-03-10change user for /etc/couchdb/couchdb.netrc to bigcouch if using bigcouchvarac
2013-03-10adding users: use different port when using bigcouchvarac
2013-03-09couchdb init file moved from site_couchdb to couchdb modulevarac
2013-03-07require package curlvarac
2013-01-21towards create_db using new update scriptvarac
2013-01-20deploy couch-doc-update before using itvarac
2013-01-20deploy /usr/local/bin/couch-doc-updatevarac
2013-01-20re-add wheezy suppportvarac
2013-01-19install couchrest gem for couch-doc-updatevarac
2013-01-19add_user: moved to update scriptvarac
2013-01-19Merge remote-tracking branch 'remotes/camptocamp/master' into developvarac
Conflicts: manifests/init.pp
2012-12-11added couchdb::update (commented out)elijah
2012-12-06Lint couchdb::paramsMickaël Canévet
2012-12-06Lint couchdb::baseMickaël Canévet
2012-12-06Lint couchdb::backupMickaël Canévet
2012-12-06Lint couchdb::initMickaël Canévet
2012-12-06Lint couchdb::debianMickaël Canévet
2012-11-06couchdb::query::setup to use curl netrc-file, default value forvarac