Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3
Darren Spruell wrote: These don't seem like complementary options to me (complementary to minimum/maximum password age, anyway). OpenBSD's useradd(8) is derived from NetBSD's so the same situation is likely to occur there. http://www.openbsd.org/cgi-bin/man.cgi?query=useraddsektion=8 http://netbsd.gw.com/cgi-bin/man-cgi?useradd+8+NetBSD-current Is a slightly modified provider needed? Yes. It'd be great if you could log a ticket please. Thanks James Turnbull -- James Turnbull Puppet Labs 1-503-734-8571 Join us for PuppetConf http://www.bit.ly/puppetconfsig, September 22nd and 23rd in Portland, Oregon, USA. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3
On Sun, Sep 18, 2011 at 9:12 AM, James Turnbull ja...@puppetlabs.com wrote: Darren Spruell wrote: These don't seem like complementary options to me (complementary to minimum/maximum password age, anyway). OpenBSD's useradd(8) is derived from NetBSD's so the same situation is likely to occur there. http://www.openbsd.org/cgi-bin/man.cgi?query=useraddsektion=8 http://netbsd.gw.com/cgi-bin/man-cgi?useradd+8+NetBSD-current Is a slightly modified provider needed? Yes. It'd be great if you could log a ticket please. https://projects.puppetlabs.com/issues/9586 Many thanks! -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3
On Fri, Sep 16, 2011 at 6:26 PM, James Turnbull ja...@puppetlabs.com wrote: dspruell wrote: Could not find a default provider for user I'd say this is a variant of http://projects.puppetlabs.com/issues/4963. A similar fix to the code in that ticket should work. Seems so, the below patch allows puppet master to bootstrap. Thanks for the reference. At first glance I wonder if a slight variance is required for OpenBSD since the useradd(8) utility doesn't support the -m/-M options for min/max age; it supports these options instead for account and password expiration: -e expiry-time Sets the default time at which new accounts will expire. It should be entered in the form ``month day year'', where month is the month name (the first three characters are sufficient), day is the day of the month, and year is the year. Time in seconds since the Epoch (UTC) is also valid. A value of 0 can be used to disable this feature. -f inactive-time Sets the time at which passwords of new accounts will expire. Also see the -e option above. These don't seem like complementary options to me (complementary to minimum/maximum password age, anyway). OpenBSD's useradd(8) is derived from NetBSD's so the same situation is likely to occur there. http://www.openbsd.org/cgi-bin/man.cgi?query=useraddsektion=8 http://netbsd.gw.com/cgi-bin/man-cgi?useradd+8+NetBSD-current Is a slightly modified provider needed? -- --- useradd.rb.bak Fri Sep 16 23:26:59 2011 +++ useradd.rb Sat Sep 17 00:15:03 2011 @@ -3,13 +3,13 @@ Puppet::Type.type(:user).provide :useradd, :parent = Puppet::Provider::NameService::ObjectAdd do desc User management via `useradd` and its ilk. Note that you will need to install the `Shadow Password` Ruby library often known as ruby-libshadow to manage user passwords. - commands :add = useradd, :delete = userdel, :modify = usermod, :password = chage + commands :add = useradd, :delete = userdel, :modify = usermod, :password = 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 -- Darren Spruell phatbuck...@gmail.com -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] OpenBSD/i386 Puppet 2.7.3
Trying to start 'puppet master' on new install of Puppet 2.7.3 w/ Facter 1.6.0 OpenBSD 4.8 i386 ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-openbsd4.8] Receiving error: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl]: Could not find a default provider for user With trace: $ sudo puppet master --no-daemonize --verbose --debug --trace debug: Failed to load library 'shadow' for feature 'libshadow' debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/ dscl does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1402:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1509:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:540:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1762:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:230:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:227:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `hook' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' /usr/local/bin/puppet:4 err: Could not create resources for managing Puppet's files and directories in sections [:main, :master, :ssl, :metr ics]: Could not find a default provider for user debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::ProviderLdap: true value when expecting false debug: Puppet::Type::User::ProviderPw: file pw does not exist debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/ dscl does not exist /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1402:in `defaultprovider' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1509:in `default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:540:in `set_default' /usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:1762:in `initialize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `new' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:457:in `service_user_available?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 45:in `use_service_user?' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 40:in `owner' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings/file_setting.rb: 97:in `to_resource' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:564:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `each' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:562:in `to_catalog' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:621:in `use' /usr/local/lib/ruby/1.8/sync.rb:230:in `synchronize' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:615:in `use' /usr/local/lib/ruby/site_ruby/1.8/puppet/application/master.rb:235:in `setup' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `hook' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in `exit_on_fail' /usr/local/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run' /usr/local/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' /usr/local/bin/puppet:4 err: Could not create resources for managing Puppet's files and directories in sections [:ca]: Could not find a defa ult provider for userESC[0m debug: Puppet::Type::User::ProviderUseradd: file chage does not exist debug: Puppet::Type::User::ProviderUser_role_add: file roleadd
Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I expect the default user provider should be useradd(8) but ProviderUseradd seems to be looking for 'chage' binary which isn't used on OpenBSD. I've checked out the 'Puppet OpenBSD' doc but didn't find anything applicable. Searching archives and Google for this error showed a few issues on Solaris and other systems but I wasn't able to find anything specific to this issue. Am I looking at a bug? Likely, I would file a ticket. ~pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5zmxMACgkQbwltcAfKi39jVwCdGIp3gfTsl70/gMaP1ieowEs+ IiIAoJn/ryH+ijPcsOBD546cadZPs/E6 =IOOL -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3
dspruell wrote: Could not find a default provider for user I'd say this is a variant of http://projects.puppetlabs.com/issues/4963. A similar fix to the code in that ticket should work. Regards James Turnbull -- James Turnbull Puppet Labs 1-503-734-8571 Join us for PuppetConf http://www.bit.ly/puppetconfsig, September 22nd and 23rd in Portland, Oregon, USA. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.