X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fcdimage_search.pp;h=69269eef475a640526ce15e6524260bcdf980930;hb=58c7800d8ae435a2dbcabaabacddb0882c87307f;hp=211d50984559b7bd080512c49676a9206bcc7f16;hpb=66b3b20c5d78a81cb87ae9d4c22717887cc05c8c;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/cdimage_search.pp b/modules/roles/manifests/cdimage_search.pp index 211d50984..69269eef4 100644 --- a/modules/roles/manifests/cdimage_search.pp +++ b/modules/roles/manifests/cdimage_search.pp @@ -1,8 +1,15 @@ class roles::cdimage_search { - package { 'debian.org-cdimage-search.debian.org': ensure => installed, } + include apache2 + include apache2::proxy_http + include apache2::ssl - apache2::site { '010-cdimage-search.debian.org': - site => 'cdimage-search.debian.org', - content => template('roles/apache-cdimage-search.debian.org.conf.erb') - } + package { 'debian.org-cdimage-search.debian.org': ensure => installed, } + + ssl::service { 'cdimage-search.debian.org': notify => Exec['service apache2 reload'], key => true, } + apache2::site { '010-cdimage-search.debian.org': + site => 'cdimage-search.debian.org', + content => template('roles/apache-cdimage-search.debian.org.conf.erb') + } + + onion::service { 'cdimage-search.debian.org': port => 80, target_address => 'cdimage-search.debian.org', target_port => 80, direct => true } }