Precedence Q: repos -> packages

29 views
Skip to first unread message

Guy Matz

unread,
Apr 8, 2015, 5:58:35 PM4/8/15
to puppet...@googlegroups.com
Hi!  I first used this sort of thing:
stage { 'yum' : before => Stage['main'] }

and tagged ll of my yumrepos with a stage of yum.  This doesn't work so well for downloaded modules, so I'm thinking of using:
Yumrepo <| |> -> Package <| |>

Is there a downside?  Any recommendations?

Thanks,
Guy

P.S. - Sorry for asking; I'm sure this has been asked a zillion times, but I haven't been able to find a good answer.

Guy Matz

unread,
Apr 13, 2015, 12:26:12 PM4/13/15
to puppet...@googlegroups.com
Anything?

Appreciated!
Guy

Christopher Wood

unread,
Apr 13, 2015, 12:32:22 PM4/13/15
to puppet...@googlegroups.com
That has been working fine for me for at least a year now, with the caveat that I also have these bits for when a yum repo changes:

# if any yum repository changes, clean all yum cache
File <| tag == 'yumrepo-file' |> ~> Exec[$yumcleaner]

# clean the yum cache before any package installs
Exec[$yumcleaner] -> Package <| |>

On Mon, Apr 13, 2015 at 12:26:03PM -0400, Guy Matz wrote:
> Anything?
> Appreciated!
> Guy
> On Wed, Apr 8, 2015 at 5:58 PM, Guy Matz <[1]guy...@gmail.com> wrote:
>
> Hi!  I first used this sort of thing:
> stage { 'yum' : before => Stage['main'] }
> and tagged ll of my yumrepos with a stage of yum.  This doesn't work so
> well for downloaded modules, so I'm thinking of using:
> Yumrepo <| |> -> Package <| |>
> Is there a downside?  Any recommendations?
> Thanks,
> Guy
> P.S. - Sorry for asking; I'm sure this has been asked a zillion times,
> but I haven't been able to find a good answer.
>
> --
> 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 [2]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/puppet-users/CABnTgtUR1yUSA%2BXJGKOyTJXSA%2BeoUEuJwm6b%3D%3Dg%2BYRojhEUSHw%40mail.gmail.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:guy...@gmail.com
> 2. mailto:puppet-users...@googlegroups.com
> 3. https://groups.google.com/d/msgid/puppet-users/CABnTgtUR1yUSA%2BXJGKOyTJXSA%2BeoUEuJwm6b%3D%3Dg%2BYRojhEUSHw%40mail.gmail.com?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages