Re: [Puppet Users] dependencies

Patrick
Thu, 18 Mar 2010 05:00:46 -0000

How is that different from the example you''re quoting?  Can''t
you just put whatever''s in that as a global dependency for Package?

On Mar 17, 2010, at 4:35 PM, Christopher Johnston wrote:

> I guess my only gripe here is I have about 2 dozen modules most of install
some form of a pkg from yum.  So they all have a direct dependency on my yum
module to do the right thing.  I would hate to have to put a require in every
single instance that I call the method to install a pkg.  Any ideas on on how to
simplify this to ensure yum is the very first thing that gets configured on my
system?
>
>                require => [ Class["yum"],
>
> On Tue, Mar 9, 2010 at 5:51 PM, Patrick <kc7zzv@gmail.com> wrote:
>
> On Mar 9, 2010, at 5:26 AM, Christopher Johnston wrote:
>
> > For example I have a yum module that sets yum configs up, but
obviously I have other modules that depend on the installation of that yum
module in order to use it to install rpms.
>
> I do the same thing with apt.  To solve this, I set the files that need to
be set at the global dependency for all packages.  Here''s an example.
>
> Package { require => Exec["post-proxy-update"] }
>
>    file { "/etc/apt/apt.conf.d/01proxy":
>        owner   => root,
>        group   => root,
>        mode    => 644,
>        source  => "puppet:///aptcacher-client/01proxy",
>    }
>
>    exec { "/usr/bin/apt-get update":
>        alias       => "post-proxy-update",
>        subscribe   => [ File["/etc/apt/apt.conf.d/01proxy"],
File["/etc/apt/sources.list.d/simba.list"] ],
>        require     => [ File["/etc/apt/apt.conf.d/01proxy"],
File["/etc/apt/sources.list.d/simba.list"] ],
>        refreshonly => true,
>    }
>
>        file { "/etc/apt/sources.list.d/simba.list":
>                owner   => root,
>                group   => root,
>                mode    => 644,
>                source  => "puppet:///local-apt/simba.list",
>        }
>
> --
> 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