I haven’t used torque or yaim but what you want to do in a fact is something
like this to determine installation.
if File.exists?('/path/to/config')
end
I don’t usually install anything on a system without doing it in puppet, so
I don’t typically write facts to find out if something is installed or not.
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Sans
Sent: Tuesday, June 14, 2011 10:01 AM
To: Puppet Users
Subject: [Puppet Users] Re: how to do conditional check?
On Jun 14, 2:48 pm, Patrick <[email protected]> wrote:
>
> 1) Why not use puppet to decide if Torque should be installed in the first
place? Then you can use that logic to decide if the file should be
created/put in place?
I can't: "torque" is a vital part of the middleware, which needs to be
installed and configured at the time of middleware installation. And n
the other hand, I use Puppet to prepare the environment for the
middleware to be installed (by yaim). After that installation (and
initial configuration), I wanna make sure that "config" file is always
there with correct values.
> 2) Does is matter if you create the file if the package isn't installed?
As I explained above, if the I create the [especially] the directory-
path, yaim will skip a things, thinking it's an upgrade or re-install,
even though installing for first time.
Hope, I've made it a bit clearer now. Cheers!!
--
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.
--
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.