From 271c37a151d8e786b29ef7f5c13217693ec65401 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 21 Aug 2014 12:15:31 -0400 Subject: Fix starting tapicero when it is not running (#6004) Due to how tapicero's initscript is made, it is not possible to check for a valid exit code for the status (it returns a zero when it is not running). So we disable the puppet 'hasstatus' parameter and instead puppet will look in the process table for 'tapicero' Change-Id: I9b017ea8055c0207e43876dd4e3bbc2619c0fd35 --- puppet/modules/tapicero/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'puppet/modules/tapicero/manifests/init.pp') diff --git a/puppet/modules/tapicero/manifests/init.pp b/puppet/modules/tapicero/manifests/init.pp index af1a96ac..35f6b06b 100644 --- a/puppet/modules/tapicero/manifests/init.pp +++ b/puppet/modules/tapicero/manifests/init.pp @@ -122,7 +122,7 @@ class tapicero { service { 'tapicero': ensure => running, enable => true, - hasstatus => true, + hasstatus => false, hasrestart => true, require => [ File['/etc/init.d/tapicero'], File['/var/run/tapicero'] ]; } -- cgit v1.2.3 From d873d4d8f9d80482602e1196e9cffab9d0545fa7 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 26 Aug 2014 10:42:44 +0200 Subject: Fix Tapicero not starting after first deploy (#6004) Added a dependency on the couchdb "tapicero" user to get created before starting the tapicero daemon. --- puppet/modules/tapicero/manifests/init.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'puppet/modules/tapicero/manifests/init.pp') diff --git a/puppet/modules/tapicero/manifests/init.pp b/puppet/modules/tapicero/manifests/init.pp index 35f6b06b..f2e723f5 100644 --- a/puppet/modules/tapicero/manifests/init.pp +++ b/puppet/modules/tapicero/manifests/init.pp @@ -124,7 +124,9 @@ class tapicero { enable => true, hasstatus => false, hasrestart => true, - require => [ File['/etc/init.d/tapicero'], File['/var/run/tapicero'] ]; + require => [ File['/etc/init.d/tapicero'], + File['/var/run/tapicero'], + Couchdb::Add_user[$::site_couchdb::couchdb_tapicero_user] ]; } } -- cgit v1.2.3