The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #12949

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

Added by Gerard Kok about 2 years ago. Updated over 1 year ago.

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

0%

Category:-
Target version:-
Affected Puppet version:2.7.11 Branch:https://github.com/puppetlabs/puppet/pull/1309
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

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

History

#1 Updated by Patrick Carlisle about 2 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 2 years ago

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

#3 Updated by Gerard Kok about 2 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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Disabled</key>
        <true/>
        <key>Label</key>
        <string>com.openssh.sshd</string>
        <key>Program</key>
        <string>/usr/libexec/sshd-keygen-wrapper</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/sshd</string>
                <string>-i</string>
        </array>
        <key>Sockets</key>
        <dict>
                <key>Listeners</key>
                <dict>
                        <key>SockServiceName</key>
                        <string>ssh</string>
                        <key>Bonjour</key>
                        <array>
                                <string>ssh</string>
                                <string>sftp-ssh</string>
                        </array>
                </dict>
        </dict>
        <key>inetdCompatibility</key>
        <dict>
                <key>Wait</key>
                <false/>
        </dict>
        <key>StandardErrorPath</key>
        <string>/dev/null</string>
        <key>SHAuthorizationRight</key>
        <string>system.preferences</string>
</dict>
</plist>

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 2 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 2 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 1 year ago

  • Branch set to https://github.com/puppetlabs/puppet/pull/1309

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? https://github.com/puppetlabs/puppet/pull/1309

#7 Updated by Gary Larizza over 1 year ago

  • Status changed from Investigating to Duplicate

Also available in: Atom PDF