That was it, thanks! On Wednesday, November 12, 2014 2:51:58 PM UTC-6, Christopher Wood wrote: > > On Wed, Nov 12, 2014 at 12:43:43PM -0800, kai wrote: > > 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 ? > > 'haproxy/$domain.haproxy.erb' > > Single quotes, there won't be any variable interpolation. Fix is probably: > > "haproxy/${domain}.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 [1]puppet-users...@googlegroups.com <javascript:>. > > To view this discussion on the web visit > > [2] > https://groups.google.com/d/msgid/puppet-users/be85e8ce-f4eb-4798-ac8b-f7755b4a72ef%40googlegroups.com. > > > > For more options, visit [3]https://groups.google.com/d/optout. > > > > References > > > > Visible links > > 1. mailto:puppet-users+unsubscr...@googlegroups.com <javascript:> > > 2. > https://groups.google.com/d/msgid/puppet-users/be85e8ce-f4eb-4798-ac8b-f7755b4a72ef%40googlegroups.com?utm_medium=email&utm_source=footer > > > 3. https://groups.google.com/d/optout >
-- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/497ecb8d-fb60-4414-88e5-94d1a54bf471%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.