Jeremy Carroll
2010-Oct-08 15:59 UTC
[Puppet Users] New user - Issue using Generic::Mkuser in the ghoneycutt/generic module.
I''m trying to automatically create users as a requirement for ssh keys to work. Here is my issue. I am getting this error from the agent. The SSH part works fine, but it will not create the user due to a dependency issue. I do not know how to debug this. err: Could not run Puppet configuration client: Could not find dependency Generic::Mkuser[hadoop] for Ssh::Authorized_keys[hadoop] at /etc/puppet/manifests/templates.pp:5 Here are my files ----- manifest/nodes.pp ----- node "ns1.colo.networkedinsights.com" inherits "default" { include ntp::server ssh::authorized_keys { "hadoop": users => [ "hadoop" ], require => Generic::Mkuser[hadoop] } } ----- modules/generic/manifest/init.pp ----- class generic { include ssh define mkuser ($uid, $gid = undef, $group = undef, $shell = "/bin/ bash", $home = undef, $ensure = "present", $manageho me = true, $dotssh = "ensure", $comment = "created via puppet", $groups = undef, $password = "!!", $symlink = undef, $mode = undef) { ... -- 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.
Garrett Honeycutt
2010-Oct-08 17:30 UTC
[Puppet Users] Re: New user - Issue using Generic::Mkuser in the ghoneycutt/generic module.
On Oct 8, 8:59 am, Jeremy Carroll <phobos...@gmail.com> wrote:> I''m trying to automatically create users as a requirement for ssh keys > to work. Here is my issue. I am getting this error from the agent. The > SSH part works fine, but it will not create the user due to a > dependency issue. I do not know how to debug this. > > err: Could not run Puppet configuration client: Could not find > dependency Generic::Mkuser[hadoop] for Ssh::Authorized_keys[hadoop] > at /etc/puppet/manifests/templates.pp:5 > > Here are my files > > ----- > manifest/nodes.pp > ----- > node "ns1.colo.networkedinsights.com" inherits "default" { > include ntp::server > ssh::authorized_keys { "hadoop": > users => [ "hadoop" ], > require => Generic::Mkuser[hadoop] > } > > } > > ----- > modules/generic/manifest/init.pp > ----- > class generic { > include ssh > > define mkuser ($uid, $gid = undef, $group = undef, $shell = "/bin/ > bash", $home = undef, $ensure = "present", $manageho > me = true, $dotssh = "ensure", $comment = "created via puppet", > $groups = undef, $password = "!!", $symlink = undef, $mode > = undef) { > ...The users are virtual resources[1], so they must be realized. Try adding this to your node definition. realize Generic::Mkuser[hadoop] -g [1] - http://projects.puppetlabs.com/projects/puppet/wiki/Virtual_Resources -- 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.
Jeremy Carroll
2010-Oct-08 18:44 UTC
Re: [Puppet Users] Re: New user - Issue using Generic::Mkuser in the ghoneycutt/generic module.
That worked. Thanks for the tip. On Fri, Oct 8, 2010 at 12:30 PM, Garrett Honeycutt <gh@garretthoneycutt.com>wrote:> On Oct 8, 8:59 am, Jeremy Carroll <phobos...@gmail.com> wrote: > > I''m trying to automatically create users as a requirement for ssh keys > > to work. Here is my issue. I am getting this error from the agent. The > > SSH part works fine, but it will not create the user due to a > > dependency issue. I do not know how to debug this. > > > > err: Could not run Puppet configuration client: Could not find > > dependency Generic::Mkuser[hadoop] for Ssh::Authorized_keys[hadoop] > > at /etc/puppet/manifests/templates.pp:5 > > > > Here are my files > > > > ----- > > manifest/nodes.pp > > ----- > > node "ns1.colo.networkedinsights.com" inherits "default" { > > include ntp::server > > ssh::authorized_keys { "hadoop": > > users => [ "hadoop" ], > > require => Generic::Mkuser[hadoop] > > } > > > > } > > > > ----- > > modules/generic/manifest/init.pp > > ----- > > class generic { > > include ssh > > > > define mkuser ($uid, $gid = undef, $group = undef, $shell = "/bin/ > > bash", $home = undef, $ensure = "present", $manageho > > me = true, $dotssh = "ensure", $comment = "created via puppet", > > $groups = undef, $password = "!!", $symlink = undef, $mode > > = undef) { > > ... > > The users are virtual resources[1], so they must be realized. Try > adding this to your node definition. > > realize Generic::Mkuser[hadoop] > > > -g > > [1] - > http://projects.puppetlabs.com/projects/puppet/wiki/Virtual_Resources > > -- > 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.