Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Change By: Moses Mendoza Labels: manage-user-group needs_repro redmine triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title John Duarte updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Change By: John Duarte Labels: manage-user-group needs_repro redmine triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title John Duarte updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Change By: John Duarte Labels: manage-user-group needs_repro redmine Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Change By: Moses Mendoza Labels: manage-user-group redmine Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Josh Cooper commented on PUP-1162 Re: puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass I think there are two parts to this. The first is to raise a meaningful error message, instead of undefined method `exists?' for nil:NilClass. The second is that when running as non-root, puppet should not try to manage the owner and group for its internal file/directory settings. It should only try to set the file mode, e.g. for things like the ssl directory containing the agent's private key. Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Charlie Sharpsteen updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Agreed that this should be flagged and raised before we create Type instances with `nil` providers. This would be a good issue to consider when we get around to refactoring Types and Providers. Change By: Charlie Sharpsteen Component/s: TypesandProviders Affects Version/s: 3.6.2 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Jason Antman commented on an issue Re: puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Originally opened a year ago against 3.0.1 by Igor Galić. Dominic Cleal made a comment similar to the above, This is happening because no suitable provider can be found for the type, since useradd is often only executable by root, so the provider’s confines won’t match. puppet resource should fail with a message similar to a normal puppet run, indicating no suitable provider’s available. I can confirm this on CentOS 6.4, puppet 3.4.1-1 from PL RPM, ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]. Works fine as root, running as a normal user yields: jantman@puppdbdev1:pts/0:~$ puppet resource --trace --debug user root Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderLdap: true value when expecting false Debug: Puppet::Type::User::ProviderUser_role_add: file usermod does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderLdap: true value when expecting false Debug: Puppet::Type::User::ProviderUser_role_add: file usermod does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderLdap: true value when expecting false Debug: Puppet::Type::User::ProviderUser_role_add: file usermod does not exist Debug: Puppet::Type::User::ProviderUseradd: file usermod does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderLdap: true value when expecting false Debug: Puppet::Type::User::ProviderUser_role_add: file usermod does not exist Error: Could not run: undefined method `exists?' for nil:NilClass /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:83:in `retrieve' /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:386:in `retrieve' /usr/lib/ruby/site_ruby/1.8/puppet/util/autoload.rb:61:in `inject' /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:380:in `each' /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:380:in `inject' /usr/lib/ruby/site_ruby/1.8/puppet/type/user.rb:380:in `retrieve' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1063:in `retrieve_resource' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2410:in `to_resource' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/resource/ral.rb:18:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:214:in `find_or_save_resources' /usr/lib/ruby/site_ruby/1.8/puppet/application/resource.rb:143:in `main' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:470:in `plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:468:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:in
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Jason Antman commented on an issue Re: puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Seems to me that this really needs a decision as to how this is handled, and whether it should be handled directly in the User type, or whether there should be some higher-level way of detecting that there's no suitable or default provider for a type, and issuing an appropriate error message... Add Comment Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Following [the resources documentation](http://docs.puppetlabs.com/learning/ral.html) I execute the following command as normal user and get: {code} igalic@tynix ~ % puppet resource user root Error: Could not run: undefined method `exists?' for nil:NilClass 1 igalic@tynix ~ % puppet resource user igalic Error: Could not run: undefined method `exists?... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Joshua Cooper commented on an issue Re: puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass There used to be an issue on Centos5, where if you weren't running as root, the useradd, etc commands were not executable by group or other, so there wasn't a default user provider. Can you also run with `--trace` and paste the relevant stack trace Add Comment Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Following [the resources documentation](http://docs.puppetlabs.com/learning/ral.html) I execute the following command as normal user and get: {code} igalic@tynix ~ % puppet resource user root Error: Could not run: undefined method `exists?' for nil:NilClass 1 igalic@tynix ~ % puppet resource user igalic Error: Could not run: undefined method `exists?... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to
Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass
Title: Message Title Carlos Sanchez updated an issue Puppet / PUP-1162 puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass Change By: Carlos Sanchez Following[theresourcesdocumentation](http://docs.puppetlabs.com/learning/ral.html)Iexecutethefollowingcommandasnormaluserandget: pre {code} igalic@tynix~%puppetresourceuserrootError:Couldnotrun:undefinedmethod`exists?'fornil:NilClass1igalic@tynix~%puppetresourceuserigalicError:Couldnotrun:undefinedmethod`exists?'fornil:NilClass1igalic@tynix~% /pre {code} Whenexecutingthesamecommandsasroot,Igettheexpectedresults: pre {code} tynix~#puppetresourceuserrootuser{'root':ensure='present',comment='root',gid='0',groups=['root','bin','daemon','sys','adm','disk','wheel'],home='/root',shell='/bin/bash',uid='0',}tynix~#puppetresourceuserigalicuser{'igalic':ensure='present',comment='IgorGalić',gid='501',groups=['wheel','jupiter','rvm'],home='/home/igalic',shell='/bin/zsh',uid='500',}tynix~# /pre {code} Environment:@ruby1.9.3p327(2012-11-10revision37606)[x86_64-linux]@ Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.