summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-02 18:37:43 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-02 18:37:43 +0200
commit1917bfb547849873b5782a3de8ba4f010883718e (patch)
treef569ab15bb641d7269d45bb14308b462895eff3a
parent9a49de9ffe7305e202f469a4153ea3b17643c6f6 (diff)
downloadcacert-puppet-1917bfb547849873b5782a3de8ba4f010883718e.tar.gz
cacert-puppet-1917bfb547849873b5782a3de8ba4f010883718e.tar.xz
cacert-puppet-1917bfb547849873b5782a3de8ba4f010883718e.zip
Add Apache VirtualHost for package repository
-rw-r--r--sitemodules/profiles/manifests/debarchive.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/debarchive.pp b/sitemodules/profiles/manifests/debarchive.pp
index ed9deaf..4533a36 100644
--- a/sitemodules/profiles/manifests/debarchive.pp
+++ b/sitemodules/profiles/manifests/debarchive.pp
@@ -56,6 +56,7 @@ class profiles::debarchive (
$inoticoming_service = '/etc/systemd/system/debarchive-inoticoming.service'
include profiles::base
+ include profiles::apache_common
package{ ['rssh', 'reprepro', 'inoticoming']:
ensure => latest,
@@ -304,4 +305,29 @@ class profiles::debarchive (
enable => true,
require => File[$inoticoming_service],
}
+
+ apache::vhost { 'webstatic.infra.cacert.org':
+ port => 80,
+ docroot => $package_dir,
+ manage_docroot => false,
+ access_log => true,
+ access_log_format => 'combined',
+ error_log => true,
+ log_level => 'warn',
+ directories => [
+ {
+ path => $package_dir,
+ options => ['Indexes', 'FollowSymLinks', 'Multiviews'],
+ require => 'all granted',
+ },
+ {
+ path => "${package_dir}/db",
+ require => 'all denied',
+ },
+ {
+ path => "${package_dir}/conf",
+ require => 'all denied',
+ },
+ ],
+ }
}