I am bit confused about /var/staging/${file} . Let me explain again my
requirement.

we have 3 version of jboss running on multiple servers.

I need a puppet module to copy a jboss config file to different location
based on path condition check . Below is my requirement

if /opt/path1 found on the server  then copy file1 or 2
if /opt/path2 found on the server then copy file1 or 2
if /opt/path3 found on the server then copy file1 or 2

if none of the above path found then dont copy any file
On Thu, Apr 12, 2012 at 10:10 AM, Sans <[email protected]> wrote:

> You mean, doing this:
>
>        define opt_dir($fl_name, $path) {
>
> instead of this?
>
>        define opt_dir($file, $path) {
>
>
>
> On Apr 12, 4:04 pm, Brian Gallew <[email protected]> wrote:
> > You can't put a file{} resource inside an exec{} resource.
>
> --
> 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.

Reply via email to