let new cdimage-search do https and onion
[mirror/dsa-puppet.git] / modules / roles / manifests / cdimage_search.pp
1 class roles::cdimage_search {
2         include apache2::proxy_http
3         include apache2::ssl
4
5         package { 'debian.org-cdimage-search.debian.org': ensure => installed, }
6
7         ssl::service { 'cdimage-search.debian.org': notify  => Exec['service apache2 reload'], key => true, }
8         apache2::site { '010-cdimage-search.debian.org':
9                 site   => 'cdimage-search.debian.org',
10                 content => template('roles/apache-cdimage-search.debian.org.conf.erb')
11         }
12
13         onion::service { 'cdimage-search.debian.org': port => 80, target_address => 'cdimage-search.debian.org', target_port => 80, direct => true }
14 }