On 2013-09-26, at 0303, Rahul Khengare 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" ) ,
> not
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
On 2013-09-25, at 0819, Brian Lalor wrote:
On Sep 25, 2013, at 8:12 AM, John Simpson 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(
On Sep 25, 2013, at 8:12 AM, John Simpson 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 expe
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 ,