Re: [Puppet Users] Re: dependencies

Doug Warner
Tue, 09 Mar 2010 14:55:29 -0000

In addition to "require" statements I like to use tags to narrow down
which
manifests run.

For example, I like to add a "bootstrap" tag that I can run on new
boxes to
lay down the base configs so that puppet runs better.  In my case, this sets
up NSS/PAM configuration so users can be found properly by the rest of my
puppet configs.

-Doug


On 03/09/2010 09:26 AM, christian wrote:
> I am using "require" for this problem...like in this case:
>
> file { "/usr/local/bb19c":
>                 recurse => true,
>                 source  =>
"puppet://$server/modules/$module/bb19c",
>                 owner   => "bb",
>                 group   => "bin",
>                 ensure  => directory,
>                 require => [ Class["general::groups"],
> Class["general::users"]],
>         }
> This is an excerpt of my "BigBrother.pp" which defines a class
for the
> module "general".
>
> The user bb and group bin are only available if the classes
> general::groups and general::user are run first.
> Without "require" or "before" puppet seems to run more
or less
> randomly through the manifests.
>
> I hope I got your problem right ;)