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-us...@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.