Hi, 
I have the following file definitions:
file { $haproxy_service_config_file:
    ensure  => 'present',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template('haproxy/$domain.haproxy.erb'),
    require => [ Class['haproxy::install'], 
File[$haproxy_service_config_dir] ],
    notify  => Class['haproxy::service'],
  }
Then in the templates directory I have the template with the following name:
example.com.haproxy.erb
Running 'facter domain' on the node where this needs to be applied
returns
the correct 'example.com', but puppet fails to find the template:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could not find template 'haproxy/$domain.haproxy.erb' at bla-bla on node
haproxy-n01.example.com
Any idea why $domain.haproxy.erb is not resolved to example.com.haproxy.erb 
?
-- 
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/be85e8ce-f4eb-4798-ac8b-f7755b4a72ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.