I have the following in my puppet.conf, to define an environment called
"dev":
> [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
[email protected]
303-497-2459
--
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.