Generate the apache ACL for draghi's "restricted" repo (RT#7962)
[mirror/dsa-puppet.git] / modules / roles / manifests / cdimage_search.pp
1 class roles::cdimage_search {
2   include apache2
3   include apache2::proxy_http
4   include apache2::ssl
5
6   package { 'debian.org-cdimage-search.debian.org': ensure => installed, }
7
8   ssl::service { 'cdimage-search.debian.org': notify  => Exec['service apache2 reload'], key => true, }
9   apache2::site { '010-cdimage-search.debian.org':
10     site    => 'cdimage-search.debian.org',
11     content => template('roles/apache-cdimage-search.debian.org.conf.erb')
12   }
13
14   onion::service { 'cdimage-search.debian.org': port => 80, target_address => 'cdimage-search.debian.org', target_port => 80, direct => true }
15 }