pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48137: Puppet 3.1.1 from pkgsrc fails on NetBSD host



>Number:         48137
>Category:       pkg
>Synopsis:       Puppet 3.1.1 from pkgsrc fails on NetBSD host
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 19 12:05:00 +0000 2013
>Originator:     Emmanuel Kasper
>Release:        
>Organization:
openForce
>Environment:
uname -srm
NetBSD 6.0.1_PATCH i386
>Description:
Puppet on NetBSD 5 and 6 fails to apply the simplest manifest possible with the 
following error:

puppet apply --verbose -e "file { '/tmp/foobar': ensure => present}"

Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for nil:NilClass
Error: Could not create resources for managing Puppet's files and directories 
in sections [:main, :ssl, :agent]: undefined method `exists?' for nil:NilClass
undefined method `exists?' for nil:NilClass

>How-To-Repeat:
puppet apply --verbose -e "file { '/tmp/foobar': ensure => present}"
>Fix:
The following patch, mostly taken from 
http://projects.puppetlabs.com/issues/9586 and reformated for the current 
puppet release, fixes the problem ( tested on netbsd 5 and 6 )

--- lib/puppet/provider/user/useradd.rb.orig    2013-08-14 18:03:00.000000000 +0
200
+++ lib/puppet/provider/user/useradd.rb 2013-08-14 18:04:21.000000000 +0200
@@ -5,13 +5,13 @@
     install Ruby's shadow password library (often known as `ruby-libshadow`)
     if you wish to manage user passwords."
 
-  commands :add => "useradd", :delete => "userdel", :modify => "usermod", :pass
word => "chage"
+  commands :add => "useradd", :delete => "userdel", :modify => "usermod", :pass
word => "passwd"
 
   options :home, :flag => "-d", :method => :dir
   options :comment, :method => :gecos
   options :groups, :flag => "-G"
-  options :password_min_age, :flag => "-m"
-  options :password_max_age, :flag => "-M"
+  options :password_min_age, :flag => "-e"
+  options :password_max_age, :flag => "-f"
 
   verify :gid, "GID must be an integer" do |value|
     value.is_a? Integer



Home | Main Index | Thread Index | Old Index