On 2014-05-16 15:49, [email protected] wrote:
Hello
I have a local puppet client installed in my machine.
I downolad https://github.com/swanke/puppet-users.git to manage linux users
I try to do a probe with the test folder:
puppet apply /root/git/puppet-users/tests/init.pp
Error: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type users::group at
/root/git/puppet-users/tests/init.pp:6 on node puppet.client.com
Wrapped exception:
Invalid resource type users::group
Error: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type users::group at
/root/git/puppet-users/tests/init.pp:6 on node puppet.client.com
Inside test folder have 3 files:
init.pp
#class { 'users': }
class users {}
users::group { 'phononet':
ensure => $user1_ensure,
gid => '555',
}
[...]
user.pp
users::user { 'hans':
ensure => 'present',
uid => '1024',
groups => [ 'adm' ],
}
group.pp
users::group { 'hans':
ensure => 'present',
gid => '1025',
}
Why doesn't find the resource type users::group?. The file group.pp
exists..
Your group.pp contains a resource, not a define. Puppet doesn't know
what to do.
Please look in the Language Guide for details on defining custom resources:
http://docs.puppetlabs.com/puppet/latest/reference/lang_defined_types.html
Regards, David
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/53789A31.4000507%40dasz.at.
For more options, visit https://groups.google.com/d/optout.