diff --git a/modules/openstack_project/manifests/website.pp b/modules/openstack_project/manifests/website.pp index 12a0b16f3f..252692a0dc 100644 --- a/modules/openstack_project/manifests/website.pp +++ b/modules/openstack_project/manifests/website.pp @@ -39,14 +39,6 @@ define openstack_project::website ( $docroot_ = $docroot } - ::httpd::vhost { $name: - serveraliases => $aliases, - port => 443, # Is required despite not being used. - docroot => $docroot_, - priority => '50', - content => template($template) - } - if ($ssl_cert != undef) { $ssl_cert_file_ = "/etc/ssl/certs/${name}.pem" file { "${ssl_cert_file_}": @@ -88,4 +80,12 @@ define openstack_project::website ( } else { $ssl_chain_file_ = $ssl_chain_file } + + ::httpd::vhost { $name: + serveraliases => $aliases, + port => 443, # Is required despite not being used. + docroot => $docroot_, + priority => '50', + content => template($template) + } }