camptocamp/puppet-apache — Issue #14: File call in SSL definition seems to be invalid
Author: buggtb
Created: 2011-11-17 17:22:40+00:00
State: open

i've run the vhost-ssl module like so:

apache::vhost-ssl { "test.mydomain.com":
ensure => present,
ip_address => "176.x.x.x",
publish_csr => "/home/webmaster/foo.example.com.csr",
days=>"30",
}

and also tried removing publish_csr
either way the File call at the bottom doesn't work.

file { "public CSR file for $name":
ensure => $publish_csr ? {
false => "absent",
default => "present",
},
path => $publish_csr ? {
true => "${apache::params::root}/${name}/htdocs/${name}.csr",
false => "${apache::params::root}/${name}/htdocs/${name}.csr",
default => $publish_csr,
},
source => "file://$csrfile",
mode => 640,
seltype => "httpd_sys_content_t",
require => Exec["generate-ssl-cert-$name"],
}

because the path doesn't exist.