From 56235330250bf1e24efc8f9c2e2178f94d41971f Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 13 Dec 2017 23:12:02 +0000 Subject: Setup vhost for meeting logs --- deployment/websites/manifests/meetbot.pp | 14 ++++++++++++++ deployment/websites/templates/vhost_meetbot.conf | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 deployment/websites/manifests/meetbot.pp create mode 100644 deployment/websites/templates/vhost_meetbot.conf (limited to 'deployment/websites') diff --git a/deployment/websites/manifests/meetbot.pp b/deployment/websites/manifests/meetbot.pp new file mode 100644 index 00000000..04bbcf70 --- /dev/null +++ b/deployment/websites/manifests/meetbot.pp @@ -0,0 +1,14 @@ +# We should rather have a meetbot module used to deploy +# it, setup backups and this website +class websites::meetbot { + $vhost = "meetbot.${::domain}" + $vhostdir = "/home/irc_bots/meetings/" + + apache::vhost::other_app { "meetbot.${::domain}": + vhost_file => 'websites/vhost_meetbot.conf', + } + + file { $vhostdir: + ensure => directory, + } +} diff --git a/deployment/websites/templates/vhost_meetbot.conf b/deployment/websites/templates/vhost_meetbot.conf new file mode 100644 index 00000000..6c393f7a --- /dev/null +++ b/deployment/websites/templates/vhost_meetbot.conf @@ -0,0 +1,17 @@ + + ServerAdmin sysadm@mageia.org + ServerName meetbot.<%= domain %> + DocumentRoot <%= scope.lookupvar("websites::meetbot::vhostdir") %> + + CustomLog /var/log/httpd/access_meetbot_log combined + ErrorLog /var/log/httpd/error_meetbot_log + > + Allow from all + + Require all granted + + Options +Indexes + IndexIgnore .htaccess *.bak *~ *.txt *.log.html + + + -- cgit v1.2.1