diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-12-13 23:12:02 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-12-13 23:12:34 +0000 |
commit | 56235330250bf1e24efc8f9c2e2178f94d41971f (patch) | |
tree | cea970576bd944beed9e057d76b4247fbcc861a3 /deployment | |
parent | a89d0cf6cc1890ee738ba50b8bf5a6a9c23c5dd1 (diff) | |
download | puppet-56235330250bf1e24efc8f9c2e2178f94d41971f.tar puppet-56235330250bf1e24efc8f9c2e2178f94d41971f.tar.gz puppet-56235330250bf1e24efc8f9c2e2178f94d41971f.tar.bz2 puppet-56235330250bf1e24efc8f9c2e2178f94d41971f.tar.xz puppet-56235330250bf1e24efc8f9c2e2178f94d41971f.zip |
Setup vhost for meeting logs
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/websites/manifests/meetbot.pp | 14 | ||||
-rw-r--r-- | deployment/websites/templates/vhost_meetbot.conf | 17 |
2 files changed, 31 insertions, 0 deletions
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 @@ +<VirtualHost *:80> + 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 + <Directory <%= scope.lookupvar("websites::meetbot::vhostdir") %>> + Allow from all + <IfModule mod_authz_core.c> + Require all granted + </IfModule> + Options +Indexes + IndexIgnore .htaccess *.bak *~ *.txt *.log.html + </Directory> +</VirtualHost> + |