Re: [Puppet Users] Noob question about the ${name} variable

2013-09-26 Thread John Simpson
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

Re: [Puppet Users] Noob question about the ${name} variable

2013-09-26 Thread Rahul Khengare
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

Re: [Puppet Users] Noob question about the ${name} variable

2013-09-25 Thread John Simpson
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(

Re: [Puppet Users] Noob question about the ${name} variable

2013-09-25 Thread Brian Lalor
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

[Puppet Users] Noob question about the ${name} variable

2013-09-25 Thread John Simpson
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 ,