It looks like you're passing in the path parameter but not using it
within your file declaration inside the define. Without a path, Puppet
needs the name parameter to have a full path. Add 'path => $path' to
your file resource and see if that gets you working.

Rob

On Oct 14, 12:19 am, CraftyTech <[email protected]> wrote:
> This is the whole file:
> class app_deployer2 {
>
> define fil($ensure= "present", $path) { file {$name:
>    content => "this is a test"
>    }
>  }
>
> fil { "File1": path => "/tmp/file1" }
>
> }
>
> #
> and this is the error message I keep on getting:
> "err: Failed to apply catalog: Parameter path failed: File paths must be
> fully qualified, not 'File1' at
> /etc/puppet/modules/app_deployer2/manifests/init.pp:5"
>
> Thanks,

-- 
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