Issue #15488 has been updated by Björn Albers.
Problem also present on Puppet 2.7.19 ---------------------------------------- Bug #15488: Puppet 2.7.18 can't create a user on OS X 10.8 https://projects.puppetlabs.com/issues/15488#change-72604 Author: Joe Block Status: Duplicate Priority: Normal Assignee: Category: user Target version: Affected Puppet version: 2.7.17 Keywords: os x,mountain lion,10.8,2.7.18 Branch: If I include a puppet user reference in my manifest like so: user { 'localadmin': ensure => 'present', comment => 'local Administrator', gid => '20', home => '/Users/localadmin', password => 'redacted', uid => '499', } When I run puppet ( with puppet apply --modulepath=modules --verbose nodeless.pp ) I get the following error message: info: Applying configuration version '1342049098' err: /Stage[osx]/Security::Admin_account::localadmin/User[localadmin]: Could not evaluate: undefined method `string' for nil:NilClass Removing the password line doesn't help. I'm also seeing errors in puppet resource user foo when I run it as root, but not when I run it as a mere mortal. jpb@Rawr:osx_masterless git:(master*) $ puppet resource user jpb user { 'jpb': ensure => 'present', comment => 'Joe Block', gid => '20', home => '/Users/jpb', password => '********', shell => '/bin/zsh', uid => '666', } jpb@Rawr: osx_masterless git:(master*) $ sudo puppet resource user jpb /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:385:in `get_password': undefined method `string' for nil:NilClass (NoMethodError) from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:199:in `generate_attribute_hash' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:235:in `single_report' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:76:in `instances' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:75:in `collect' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/provider/nameservice/directoryservice.rb:75:in `instances' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/type.rb:896:in `instances' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/type.rb:889:in `collect' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/type.rb:889:in `instances' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/indirector/resource/ral.rb:4:in `find' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/indirector/indirection.rb:196:in `find' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application/resource.rb:222:in `find_or_save_resources' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application/resource.rb:144:in `main' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:317:in `run_command' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:309:in `run' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:416:in `hook' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:309:in `run' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:407:in `exit_on_fail' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/application.rb:309:in `run' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/lib/puppet/util/command_line.rb:69:in `execute' from /Library/Ruby/Gems/1.8/gems/puppet-2.7.18/bin/puppet:4 from /usr/bin/puppet:19:in `load' from /usr/bin/puppet:19 jpb@Rawr:/Users/jpb/Documents/Ooyala/src/corppuppet/osx_masterless -- 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.
