On Mar 31, 6:00 pm, Maria Thompson-Saeb <[email protected]>
wrote:
> Thanks, that helped.  My module appears to run now but not until the second
> or third attempt with no changes being made.
>
> err: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Could not find class virtual at
> /data/puppet/test/modules/virtual_users/manifests/init.pp:5 on node

Well that looks like a problem with the layout of and/or access
control for your manifest files.  In addition to init.pp, directory /
data/puppet/test/modules/virtual_users/manifests/ should contain your
virtual.pp and unixadmins.pp files.  All those files must be readable
by the puppetmaster at runtime.

In addition, you could try making the module's init.pp manifest
include the classes by their fully-qualified names
(virtual_users::virtual and virtual_users::unixadmins), or better,
have it not include either, since it doesn't appear that it needs to
do.

Also, though these probably are not related to your current problem:
1) If you set up your modules correctly, you should not ever need to
use an import statement.  It looks and sounds like you are indeed
setting them up correctly, so I recommend you remove the one import
statement you have.

2) Classes should inherit from other classes *only* for the purpose of
overriding properties of the parent classes' resources.  For simply
including the same resources, classes should *include* other classes,
not inherit from them.  In your case, this applies to your
virtual_users::unixadmins class.

3) Before you develop this module further, I recommend changing its
name to simply "users", or something else more descriptive of its
role.  The "virtual" part is an implementation detail.  Consider that
the virtual_users::unixadmins class provides *concrete* users and
groups, an it seems likely that classes you add to the module will
dothe same.  Such a renaming would have no technical impact (if done
correctly), but good naming matters more than you might think.


John

-- 
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