diff options
author | Micah Anderson <micah@riseup.net> | 2013-08-15 10:40:03 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-08-15 15:17:45 -0400 |
commit | 1434b9422bf37d1abcff53a076e9f07892c87022 (patch) | |
tree | 89aeb2d287891729a220495723a3789b3922d900 /manifests | |
parent | f317163e8aa6abfc992df5ef65d99b0861488d41 (diff) |
The /etc/couchdb directory wont exist until something creates it (such as 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
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/bigcouch.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/bigcouch.pp b/manifests/bigcouch.pp index c56890b..2e3a118 100644 --- a/manifests/bigcouch.pp +++ b/manifests/bigcouch.pp @@ -5,6 +5,11 @@ class couchdb::bigcouch inherits couchdb::base { ensure => directory, mode => '0755'; + '/etc/couchdb': + ensure => directory, + mode => '0755', + before => Package['couchdb']; + '/opt/bigcouch/etc': ensure => link, target => '/etc/couchdb', |