summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-12-04add new couch-doc-update that uses MultiJson instead, this could prevent the ↵Micah Anderson
outdated json errors (#4622)
2013-12-03change couchdb::adduser to use couchdb::document instead of couchdb::updateMicah Anderson
2013-11-26enable uploading a document to couch from a file (#4256)Micah Anderson
2013-11-23more verbose error logging - also print the doc we triedAzul
2013-11-23fixed couch-doc-update: log errors to stderr and syslog (#4225)Azul
2013-11-23Revert "couch-doc-update: log errors to stderr and syslog (#4225)"Azul
This reverts commit d3153dd2da619035c0504b02f478796d656bb11d.
2013-11-22couch-doc-update: log errors to stderr and syslog (#4225)Azul
2013-10-22rename readers to members in couch setup (#4219)Azul
couch db readers actually are couchdb members ( they can read and write ). I think couch themselves changed the termology at some point but i might just have used the wrong term from the beginning on. Let's call them members either way because it's more clear that read only members require aditional design docs.
2013-10-16pin depending packages from squeeze for the bigcouch packagevarac
2013-09-25Merge branch 'feature/3709-check-security-before-overwriting'Azul
2013-09-20use require => rather than the -> syntaxAzul
2013-09-19Revert "don't use couchdb::document for creating _security, cause this ↵Azul
special doc doesn't have an _id (#3706)" This reverts commit dacaeb4d98be9468336923f5501822d389bda768. couch-doc-update and thus couchdb::document now also work for _security documents. We simply add the given _id when none is present in the existing doc. Using the normal saving of CouchRest::Document then works.
2013-09-19couch-doc-update now also works for _securityAzul
It also clears doc fields that are not set in the new data when updating a doc.
2013-09-18use curl -f instead of curl | grep -v "error"Azul
curl -f will fail if a 400 or 500 response code is returned
2013-09-16Improve couch doc diff (#3761)Azul
Both the couch document and the second paramter will be pretty printed before comparison so differences in spaces etc. do not matter. All keys starting with an underscore on the couch such as _id and _rev will be removed before the comparison - we assume we want to compare the real data, not the metadata about the document as we usually do not know or care about what the id and revision will be.
2013-09-04lintedvarac
2013-09-04lintedvarac
2013-09-04linted add_user.ppvarac
2013-09-04bigcouch nodes doesn't get registered as cluster members (Bug #3703)varac
2013-09-04make curl silentvarac
2013-09-04don't use couchdb::document for creating _security, cause this special doc ↵varac
doesn't have and _id (#3706)
2013-08-30couchdb: update_user_webapp fails (Bug #3611)varac
2013-08-29fixed merge resolution error from last mergevarac
2013-08-29Merge branch 'master' of ssh://code.leap.se/puppet_couchdbvarac
Conflicts: manifests/create_db.pp
2013-08-29puppet couchdb module doesn't create necessary databases anymore (Bug #3594)varac
2013-08-28minor: cleanup spacing (feature #3485)Azul
2013-08-28use couchdb::document to create bigcouch node config (feature #3485)Azul
fixes the use of couch-doc-update with non standart hosts replaces couchdb::bigcouch::query with couchdb::bigcouch::document
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-04limit the variable scope lookupMicah 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-21make firewalling easier, start erlang vm on port 9001varac
see http://stackoverflow.com/questions/8459949/bigcouch-cluster-connection-issue#comment10467603_8463814