Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 547378

Summary: app-admin/puppet-4.0.0: Wrong destination directories
Product: Gentoo Linux Reporter: Pascal Jufer <pascal-jufer>
Component: [OLD] ServerAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal CC: ruby, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://docs.puppetlabs.com/puppet/4.0/reference/whered_it_go.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Pascal Jufer 2015-04-22 09:34:35 UTC
Since the new puppet system confdir is /etc/puppetlabs/puppet instead of /etc/puppet, the path in the ebuild should be adjusted accordingly.

At the moment the agent won't start:

$ /etc/init.d/puppet start
 * Caching service dependencies ...    [ ok ]
 * Starting puppet ...
 * start-stop-daemon: failed to start `/usr/bin/puppet'
 * Failed to start puppet              [ !! ]
 * ERROR: puppet failed to start

$ tail -n 1 /var/log/syslog/puppet-agent.log 
Apr 22 11:28:29 local puppet-agent[31649]: Could not prepare for execution: Got 4 failure(s) while initializing: File[/etc/puppetlabs/puppet]: change from absent to directory failed: Cannot create /etc/puppetlabs/puppet; parent directory /etc/puppetlabs does not exist; File[/etc/puppetlabs/code]: change from absent to directory failed: Cannot create /etc/puppetlabs/code; parent directory /etc/puppetlabs does not exist; File[/opt/puppetlabs/puppet/cache]: change from absent to directory failed: Cannot create /opt/puppetlabs/puppet/cache; parent directory /opt/puppetlabs/puppet does not exist; File[/var/log/puppetlabs/puppet]: change from absent to directory failed: Cannot create /var/log/puppetlabs/puppet; parent directory /var/log/puppetlabs does not exist


Reproducible: Always

Steps to Reproduce:
1. Install puppet-4.0
2. Start the daemon
Actual Results:  
The agent won't start due to the missing confdir.

Expected Results:  
The agent should start initially without any errors.
Comment 1 Pascal Jufer 2015-04-22 10:07:17 UTC
Just noticed not only the condir but also the bindir has been changed to /opt/puppetlabs/bin/.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-04-28 20:03:24 UTC
fix is in tree,  I'll be doing some more testing tonight as well with it