Issue #9192 has been updated by Nigel Kersten. Keywords set to lion
I think we've been doing Mac OS X version checks wrong. Rather than maintaining whitelists, we should maintain blacklists, and assume that special behavior like the overrides plist will continue to exist in new versions, so we don't have all these minor updates each time a new OS X comes out. Thoughts? ---------------------------------------- Bug #9192: service (launchd) provider fails on OS X 10.7 (Lion) https://projects.puppetlabs.com/issues/9192 Author: Clay Caviness Status: In Topic Branch Pending Merge Priority: Normal Assignee: Gary Larizza Category: OSX Target version: 2.7.x Affected Puppet version: Keywords: lion Branch: https://github.com/khightower/puppet/tree/bug/master/9192 $ sudo puppet apply --debug service { 'com.company.corp.somejob': ensure => running, enable => true, } [...] debug: Puppet::Type::Service::ProviderLaunchd: Executing '/usr/bin/plutil -convert xml1 -o /dev/stdout /Library/LaunchDaemons/com.company.corp.somejob.plist' debug: Service[com.company.corp.somejob](provider=launchd): Executing 'launchctl load /Library/LaunchDaemons/com.company.corp.somejob.plist' err: /Stage[main]//Service[com.company.corp.somejob]/ensure: change from stopped to running failed: Unable to start service: com.company.corp.somejob at path: /Library/LaunchDaemons/com.company.corp.somejob.plist debug: Finishing transaction 2277069800 debug: Storing state debug: Stored state in 0.13 seconds notice: Finished catalog run in 1.27 seconds Yet another instance where there an OS X version check. Lines 214, 239, and 254 of launchd.rb (http://projects.puppetlabs.com/projects/puppet/repository/revisions/master/entry/lib/puppet/provider/service/launchd.rb): if self.class.get_macosx_version_major == "10.6" 10.7 _also_ uses the launchd overrides plist. I'm using Mac OS X 10.7.1, Puppet 2.7.3. -- 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.
