This works on our mysql configs with an erb
file { "cluster.conf":
name => "/etc/cluster/cluster.conf",
owner => root,
group => root,
mode => 640,
content => template("nmysql/cluster.conf.erb"),
# notify => Service["rgmanager"],
require => Package["rgmanager"],
}
On Wed, Nov 30, 2011 at 12:29 PM, Chris Hirsch <[email protected]>wrote:
> Hi all,
>
> I'm trying to figure out if I can serve a certain template that matches a
> hostname or serve the default like I could if this was just a file.
>
> Works:
> file { '/etc/yum.conf':
> ensure => file,
> source => ["puppet://puppet/yum/yum.**conf.$hostname",
> "puppet://puppet/yum/yum.conf"**],
> }
>
> Trying to figure out:
> file {'/etc/yum.conf':
> ensure => file,
> content => ["template("yum/yum.conf.$**hostname.erb"),
> " template("yum/yum.conf.erb")],
> }
>
> There is this issue
> http://projects.puppetlabs.**com/issues/5158<http://projects.puppetlabs.com/issues/5158>that
> seems related but I can't figure out if this is possible.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to puppet-users+unsubscribe@**
> googlegroups.com <puppet-users%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en>
> .
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.