Hi John,
Read my previous reply,
file { '/etc/httpd/conf.d/ssl.conf' :
ensure = file ,
mode= 0644 ,
owner = 0 ,
group = 0 ,
content = template ( ${module_name}${name}.erb ) ,
notify = Service['httpd'] ,
require = Package['httpd'] ,
}
On 2013-09-26, at 0303, Rahul Khengare rahulk1...@gmail.com wrote:
Hi John,
Read my previous reply,
file { '/etc/httpd/conf.d/ssl.conf' :
ensure = file ,
mode= 0644 ,
owner = 0 ,
group = 0 ,
content = template ( ${module_name}${name}.erb ) ,
Greetings.
When defining a file resource, why does the ${name} variable sometimes expand
to the filename being maintained, and sometimes to the module name?
Examples (in a module which, for simplicity, we will call apache) ...
file { '/etc/httpd/conf/httpd.conf' :
ensure = file ,
On Sep 25, 2013, at 8:12 AM, John Simpson j...@voalte.com wrote:
file { '/etc/httpd/conf.d/ssl.conf' :
ensure = file ,
content = template ( ${module_name}{$name}.erb ) ,
}
Here $name expands to apache, so the filename passed to template() is
apacheapache.erb, rather than the
On 2013-09-25, at 0819, Brian Lalor bla...@bravo5.org wrote:
On Sep 25, 2013, at 8:12 AM, John Simpson j...@voalte.com wrote:
file { '/etc/httpd/conf.d/ssl.conf' :
ensure = file ,
content = template ( ${module_name}{$name}.erb ) ,
}
Here $name expands to apache, so the filename