The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #12949

service (launchd) provider (puppet 2.7.11) reports error on OS X 10.6 (Snow Leopard)

Added by Gerard Kok about 4 years ago. Updated over 3 years ago.

Status:DuplicateStart date:03/04/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected Puppet version:2.7.11 Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


The following service definition:

service { "sshd":
    name => $::operatingsystem ? {
        "Darwin" => "com.openssh.sshd",
        "Ubuntu" => "ssh",
        default => "sshd",
    ensure => true,
    enable => true,

gives the following error when I run ‘puppet agent’ on Mac OS X 10.6.8 and Puppet 2.7.11:

err: Could not prefetch service provider ‘launchd’: No resource and no name in property hash in launchd instance

The same service definition doesn’t result in an error on Mac OS X 10.7 with Puppet 2.7.11, or Mac OS X 10.6 with Puppet 2.7.6.

puppet-agent.out - puppet agent output (55.7 KB) Gerard Kok, 03/18/2012 04:21 am

Related issues

Related to Puppet - Bug #17624: Puppet 3.0.1 on OSX 10.6.8 Launchd Fails Service Refresh Closed


#1 Updated by Patrick Carlisle about 4 years ago

  • Status changed from Unreviewed to Investigating

Could you please run with —debug and —trace and paste here?

#2 Updated by Gary Larizza about 4 years ago

Also, can you paste the output of your /System/Library/LaunchDaemons/ssh.plist file?

#3 Updated by Gerard Kok about 4 years ago

/System/Library/LaunchDaemons/ssh.plist on the Snow Leopard install:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Admitted this is not on a pristine system, but on the other hand I can’t recall editing it.

#4 Updated by Gary Larizza about 4 years ago

No, that does look quite stock. Can you post a file with the output of running puppet agent with —debug and —trace enabled? It would help to see what’s going on inside.

#5 Updated by Gerard Kok about 4 years ago

Attached please find the output of ‘puppet agent —test -v —debug —trace —environment development’, a development environment consisting only of the above service definition, and puppet 2.7.11 on OS X 10.6.8.

#6 Updated by Gary Larizza over 3 years ago

  • Branch set to

I’m fairly certain this is the same thing as in #17624 I just pushed some code up that should have fixed that bug – can you give it a try and see if it helped you out?

#7 Updated by Gary Larizza over 3 years ago

  • Status changed from Investigating to Duplicate

Also available in: Atom PDF