I didn''t do a ton of work on this as I had hoped to just drop it in place and move on to the million other things I have to do today, but I shovelled auth.pp into ssh/manifests and now I get this: Feb 10 10:56:18 hlslinutil1 puppetmasterd[611]: Could not find resource type ssh::auth::server at /etc/puppet/manifests/templates.pp: 43 on node hlscms.law.harvard.edu Feb 10 10:23:44 hlslinutil1 puppetmasterd[24428]: Could not find class ssh::auth::keymaster at /etc/puppet/manifests/nodes.pp:21 on node hlslinutil1.law.harvard.edu This is on 0.25.3. I use the ssh module already for other things, so I tried doing ''include ssh::auth'' in my init.pp which consists of just a class ssh and a few bits in there. None of this helped and it still can''t see ssh::auth no matter what. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> I didn''t do a ton of work on this as I had hoped to just drop it in > place and move on to the million other things I have to do today, but > I shovelled auth.pp into ssh/manifests and now I get this: > > Feb 10 10:56:18 hlslinutil1 puppetmasterd[611]: Could not find > resource type ssh::auth::server at /etc/puppet/manifests/templates.pp: > 43 on node hlscms.law.harvard.edu > Feb 10 10:23:44 hlslinutil1 puppetmasterd[24428]: Could not find class > ssh::auth::keymaster at /etc/puppet/manifests/nodes.pp:21 on node > hlslinutil1.law.harvard.edu > > This is on 0.25.3. I use the ssh module already for other things, so > I tried doing ''include ssh::auth'' in my init.pp which consists of just > a class ssh and a few bits in there. None of this helped and it still > can''t see ssh::auth no matter what.Ashley, the most likely cause for this is that the ''include ssh::auth'' statement is not in an enclosing scope for the calls to ssh::auth::keymaster and ssh::auth::server. If you''re not sure if this is the case, please post your configuration, at least the part that includes everything related to ssh::auth. If you prefer, you can send it to me by private mail and I''ll take a look at it. Andrew. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to puppet-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> I had include ssh:auth in ssh/manifests/init.pp at first but that didn''t > work. then I put it in my baseclass that is included in all nodes but > that wouldn''t work and finally I added it to the node{} statement. I''m > a little confused because my ssh module is included on all machines in > the baseclass, isn''t that enough for puppet? It seems a pain to have to > list it in every node{} rather than baseclass.No, agreed that you shouldn''t have to include it more than once. Try putting ''include ssh::auth'' in the Puppet global scope, i.e. outside of all of your node definitions and class invocations in manifests/site.pp. The docs mention this requirement at http://www.reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth#detailed-usage , but looking at it now I see that it''s probably not as clear as I thought. Sorry about that. I''ll make it more explicit. All ssh::auth does is to define a bunch of classes and defines. If Puppet can''t find them, then they''re not in an enclosing scope to where you''re using them. HTH, Andrew. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to puppet-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> The docs mention this requirement at > http://www.reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth#detailed-usage > , but looking at it now I see that it''s probably not as clear as I thought. > Sorry about that. I''ll make it more explicit.OK, I''ve made this clearer in the docs, and added the "Could not find class/resource type" error message to the list there. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to puppet-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Awesome, thanks. I''ve got to muck up the module now because I want to be able to stick my key in as root so that I can do some automated ssh loop stuff, but it defaults to dealing with /home/$user and /root doesn''t fit with that. :) On Thu, Feb 11, 2010 at 4:01 AM, Andrew Schulman < google-groups-andrex@sneakemail.com> wrote:> > The docs mention this requirement at > > > http://www.reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth#detailed-usage > > , but looking at it now I see that it''s probably not as clear as I > thought. > > Sorry about that. I''ll make it more explicit. > > OK, I''ve made this clearer in the docs, and added the "Could not find > class/resource type" error message to the list there. > > -- > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> Awesome, thanks. > > I''ve got to muck up the module now because I want to be able to stick my key > in as root so that I can do some automated ssh loop stuff, but it defaults > to dealing with /home/$user and /root doesn''t fit with that. :)Yes, I do that too. That''s what the home parameter is for: ssh::auth::key { root: home => /root } -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to puppet-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.