Issue #5210 has been reported by Andrew Forgue.

----------------------------------------
Bug #5210: launchd provider calls enabled? on missing launchd provider
https://projects.puppetlabs.com/issues/5210

Author: Andrew Forgue
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.3rc2
Keywords: 
Branch: 


It seems that the launchd provider calls enabled? on services in the catalog, 
even if those services haven't been installed yet.

>From my testing, on a brand new box without puppet we load a new launchd 
>service onto the service with a 
    
    service { "net.sourceforge.ganglia":
      require => File["/Library/LaunchDaemons/net.sourceforge.ganglia"],
      ...
    }

If the file doesn't exist (as it wouldn't on puppet run) the catalog apply 
fails with:

    err: Could not run Puppet configuration client: Unable to find launchd 
plist for job: net.sourceforge.ganglia    

I would think this is an acceptable error condition as puppet hasn't put the 
plist on the server yet.  So maybe the enabled? is being called without 
processing the rrequire => directives.  We have an in-code workaround of 
catching Pupppet::Error from plist_from_label and returning :false in enabled?()






-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to