Displaying 2 results from an estimated 2 matches for "installesite".
2007 Jan 15
7
How to conditionally run defines?
...In this way I
can skip a whole lot of setup work in the define if I know it has
already run once before. I would think adding a unless clause would be
a elegant solution (and the other conditionals like onlyif that exist
elsewhere too).
So that I can call my defines with something like this:
installesite { "testaa":
require => [ perlinstall[ "everything" ], exec[
"fix-everything-sqldefs" ] ],
unless => "test -e /var/www/testaa/index.pl",
}
I don''t know if this would be easy to add to the puppet language, or
if it can easil...
2007 Jan 15
1
Re: How to conditionally run defines? (and a question about updating... )
...know it has
> > already run once before. I would think adding a unless clause would be
> > a elegant solution (and the other conditionals like onlyif that exist
> > elsewhere too).
> >
> > So that I can call my defines with something like this:
> >
> > installesite { "testaa":
> > require => [ perlinstall[ "everything" ], exec[
> > "fix-everything-sqldefs" ] ],
> > unless => "test -e /var/www/testaa/index.pl",
> > }
> >
> > I don''t know if this woul...