Mercurial > repos > other > Puppet
changeset 282:6668c0708887
Remove unused "http" module
Everyone should be using HTTPS anyway these days and we don't
even use the definition for HTTP->HTTPS redirects.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 15 Feb 2020 20:08:21 +0000 |
parents | af7df930a670 |
children | d29f477c51d4 |
files | modules/website/manifests/http.pp |
diffstat | 1 files changed, 0 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/website/manifests/http.pp Sat Feb 15 19:07:11 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -define website::http( - $docroot = undef, - $docroot_owner = 'root', - $docroot_group = 'root', - $serveraliases = [], - $ensure = 'present', - $custom_fragment = undef, - Optional[String] $proxy_fragment = $custom_fragment, - ) { - if ! defined(Class['website']) { - fail('You must include the website base class before using any website defined resources') - } - - $shortname = domain_to_short_name($name) - $logpart = $shortname - - if $docroot == undef { - $siteroot = "${website::basedir}/${shortname}" - } else { - $siteroot = $docroot - } - - apache::vhost { $name: - port => '80', - docroot => $siteroot, - docroot_owner => $docroot_owner, - docroot_group => $docroot_group, - docroot_mode => '2775', - custom_fragment => $custom_fragment, - logroot => '/var/log/apache/', - access_log_file => "access_${logpart}.log", - access_log_format => "%h %l %u %t \\\"%r\\\" %>s %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\" %{Host}i", - serveraliases => $serveraliases, - ensure => $ensure, - } - - if ($website::proxy_6to4_ip != undef) { - apache::vhost { "$name-PROXY": - ip => $website::proxy_6to4_ip, - port => '80', - docroot => $siteroot, - docroot_owner => $docroot_owner, - docroot_group => $docroot_group, - docroot_mode => '2775', - custom_fragment => "RemoteIPProxyProtocol On -$proxy_fragment", - logroot => '/var/log/apache/', - access_log_file => "access_${logpart}.log", - access_log_format => "%a %l %u %t \\\"%r\\\" %>s %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\" %{Host}i", - serveraliases => $serveraliases, - ensure => $ensure, - } - } -}