From 1434b9422bf37d1abcff53a076e9f07892c87022 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 15 Aug 2013 10:40:03 -0400 Subject: 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 --- manifests/bigcouch.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests') 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', -- cgit v1.2.3