I have a define that sets a bunch of default values:
define virtualhost($vhostname, $vhost_template, ... , $ssl_enabled
= false) {
if $ssl_enabled == true {
$extension = '-ssl'
} else {
$extension = ''
}
file {
"/etc/httpd/sites-available/${vhostname}${extension}.conf":
ensure => present,
content => template($vhost_template),
mode => 0644;
in the template I have a line:
# <%= ssl_enabled %>
and the specific definition is:
apache::virtualhost {
"$title.local.twitter.com-ssl":
vhostname => "$title.local.twitter.com",
vhost_template => "twitter/staging.local.twitter.com.conf.erb",
ssl_enabled => true;
the file is named with -ssl, but the contents of the file (produced
with erb) produces a line:
# false
So the contents of the define() see ssl_enabled properly, but the erb
doesn't. Is this known?
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@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.