Hello,

I have the following define:

define adduser ($shell, $group, $fullname, $ingroups = "none", $home = "none") {
   user { "$name":
      ensure => present,
      comment => "$fullname",
      gid => "$group",
      groups => "$ingroups",
      membership => minimum,
      shell => "$shell",
      home => "$home",
      require => Group[$group]
   }
}

and the following "call" for this define:

adduser {
   "teste" :
   shell => "/bin/bash", group => "teste",fullname => "teste
Workgroup",ingroups => "admin"
}

and ..... the following error:

err: Could not run Puppet configuration client: Could not find
dependency Group[teste] for User[teste] at
/etc/puppet/modules/sysadmin/manifests/init.pp:13

Can somebody help me with this error?

Thanks !

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to