How would one go about fetching a template from Maven? For example, the
normal way of using a file resource for an application config file might be:
file { "/etc/app/app.xml":
mode => "0755",
owner => "appuser",
group => "appuser",
content => template("app/app.xml.erb"), # retrieved from
modules/app/templates/app.xml
notify => Service[app],
require => Package[app];
}
However, what if app.xml.erb is in a separate Maven repository on some
other server? How would you go about retrieving and evaluating the template?
How might you go about this for a normal file, i.e. instead of source =>
"puppet://..." ?
I guess you could use an exec resource for a normal file but probably not
for a template since Puppet needs to evaluate the code in the template file.
Thoughts?
--
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.