> [dev]
> manifest=/usr/local/puppet/dev/site.pp
> modulepath=/usr/local/puppet/dev/modules/package:/usr/local/puppet/dev/modules/node
My rationale for this is that I'm splitting my modules into two
types-- a "package" type that handles configuration of individual
packages and is generic, and a "node" type that defines classes of
nodes and has site-specific configuration.
I have the following in one of my node classes:
> include monit
> monit::monitrc { "monitrc":
> content => file("puppet://$servername/modules/vserver/monitrc")
> }
The absolute path of the monitrc file is
"/usr/local/puppet/dev/modules/node/vserver/files/monitrc".
Unfortunately, this is giving me the error "Files must be fully
qualified". I've also tried a "puppet:///" URL and a relative path with
the same result. Does the file() function only support fully qualified
paths? This seems inconsistent, since the template() function
appears to support at least relative paths according to
http://docs.reductivelabs.com/guides/modules.html.
--
Dan Urist
dur...@ucar.edu
303-497-2459
Yes. I recommend looking into copying the logic from the template()
function into the file() function and submitting a patch.
Alternatively, you could use the template() function and just not have
any erb in the template.
--
Jeff McCune
http://www.puppetlabs.com/
> On Thu, Sep 9, 2010 at 10:19 AM, Dan Urist <dur...@ucar.edu> wrote:
> [snip]
> > Does the file() function only support fully qualified
> > paths?
>
> Yes. I recommend looking into copying the logic from the template()
> function into the file() function and submitting a patch.
> Alternatively, you could use the template() function and just not have
> any erb in the template.
>
Thanks for the clarification; unfortunately I don't have time to work
up a patch, but I have submitted a feature request:
http://projects.reductivelabs.com/issues/4749
http://projects.puppetlabs.com/issues/1946
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>