On 01/28/2012 12:17 AM, jblaine wrote:
> Trashing the entire defined resource idea 30 mins ago, and
> simply trying:

But why?

> class ldapclient::config {
>     case $sys_sshortai {
>         'RH6': {
>             file { '/etc/openldap/ldap.conf':
>                 mode => '444',
>                 source => "${ldapclient::params::fileroot}/${name}",

You're back to square one. $name is nothing sensible in this context.
It's the name of the class this appears inside of - 'ldapclient::config'.

For automatic URL composition by use of the file path, you definitely do
want to wrap the file resource in a defined type like you were trying
earlier!

HTH,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to