Actually, the more I read this, the more it seems to indicate to me
that the problem is with the Yumrepo, NOT the Exec. It does say after
all "Could not find dependency Yumrepo[base]" ---FOR---
"Exec[yum-update]"...

Doug.

On Thu, Aug 13, 2009 at 1:56 PM, Douglas
Garstang<[email protected]> wrote:
> Larry,
>
> I guess I'm really confused then. This config works in prod, and:
>
> manifests/site.pp:
> --------------------------
> import "update"
> ...
> Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" }
>
>
> modules/update/manifests/init.pp:
> -------------------------------------------------
>        exec { "yum-update":
>                command => "yum -y --exclude=jdk --exclude=kernel* update",
>                tag => "production_update",
>                require => [
>                        Exec["yum_clean"],
>                        Yumrepo["base"],
>                        Yumrepo["Centos4 os"],
>                        Yumrepo["Centos4 Updates"],
>                        Yumrepo["RPMforge"],
>                        Yumrepo["jpackage"],
>                        Yumrepo["jpackage-el4"],
>                        Yumrepo["zeroc-ice"],
>                        Yumrepo["updates"],
>                        Yumrepo["addons"],
>                        Yumrepo["extras"],
>                        Yumrepo["centosplus"],
>                        Yumrepo["contrib"],
>                        Yumrepo["c4-media"]
>                ],
>        }
>
> site.pp defines Exec and imports the update module, which calls Exec.
>
> Doug.
>
> On Thu, Aug 13, 2009 at 1:41 PM, Larry Ludwig<[email protected]> wrote:
>>
>> On Aug 13, 2009, at 4:32 PM, Douglas Garstang wrote:
>>
>> Larry,
>>
>> Ok i see that. I didn't realise the repo's were managed inside puppet.
>>
>> So, now, and I saw someone else say this, how do we debug these
>> dependancies? The error isn't particularly descriptive, and if it's
>> failing because of (non mentioned) dependancy, how do we track it
>> down?
>>
>> The error:
>> warning: Configuration could not be instantiated: Could not find
>> dependency Yumrepo[base] for Exec[yum-update] at
>> Means it's cannot find that type in your puppet code for the Exec type.
>>  Either:
>> - the type is not defined
>> - you don't have an 'include' to the puppet .pp file that has this type in
>> it.
>> Regards..
>> -L
>> --
>> Larry Ludwig
>> Reductive Labs
>>
>> >>
>>
>
>
>
> --
> Regards,
>
> Douglas Garstang
> http://www.linkedin.com/in/garstang
> Email: [email protected]
> Cell: +1-805-340-5627
>



-- 
Regards,

Douglas Garstang
http://www.linkedin.com/in/garstang
Email: [email protected]
Cell: +1-805-340-5627

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