Sounds like a scope issue to me. You need to make sure the class is
included before you start referencing objects from it. Otherwise,
Puppet doesn''t know they exist...
i.e.:
class mirror {
include users::tomcat
[... a bunch more stuff. ]
}
Disclaimer: I''ve been off on my own doing this stuff and there may be
a better/more elegant way to do it. :)
On Fri, Jul 16, 2010 at 12:21 PM, phrawzty <phrawzty@gmail.com>
wrote:> On Jul 16, 7:12 pm, Jeff <joesi...@gmail.com> wrote:
>> Hi,
>>
>> I have a class, users::tomcat in which I have
>>
>> user { "tomcat":
>> ...
>>
>> }
>>
>> I have another class named mirror. In mirror, I have require
>> User["tomcat"]
>>
>> puppet errs with:
>>
>> err: Could not apply complete configuration: Could not retrieve
>> dependency ''User[tomcat]'' at
/var/puppet/modules/mirror/manifests/
>> init.pp:17
>>
>> It''s not clear why.
>
> Scope issue ?
>
> class numberone {
> # the user object is instantiated here in class number one
> user { "tomcat":
> }
> }
>
> class numbertwo {
> # but you attempt to reference it here, where the object doesn''t
> exist
> require => User["tomcat"]
> }
>
> DISCLAIMER : I''m only a few days into Puppet, so maybe i
don''t know
> what i''m talking about. :P
>
>
> --
> dan.
>
> --
> 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.
>
>
--
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.