Age | Commit message (Collapse) | Author |
|
|
|
The couchdb module should not depend on other modules,
if not needed. The dependency how packages should be installed
should be configured globally, like:
Exec['refresh_apt'] ->
Package <| ( title != 'lsb' ) |>
see https://leap.se/code/issues/2988 for including this
in the shared apt module.
- Related: https://leap.se/code/issues/2988
|
|
|
|
fixes https://leap.se/code/issues/3527
|
|
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
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|