Puppet Class: profile::installserver::proxy

Defined in:
modules/profile/manifests/installserver/proxy.pp

Overview

Installs a proxy server for the install server

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::installserver::proxy::ensure'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'modules/profile/manifests/installserver/proxy.pp', line 2

class profile::installserver::proxy(
    Wmflib::Ensure $ensure = lookup('profile::installserver::proxy::ensure'),
){

    class { 'squid':
        ensure         => $ensure,
        config_content => template('role/caching-proxy/squid.conf.erb'),
    }

    base::service_auto_restart { 'squid': }

    cron { 'squid-logrotate':
        ensure  => $ensure,
        command => '/usr/sbin/squid -k rotate',
        user    => 'root',
        hour    => '17',
        minute  => '15',
    }

    ferm::service { 'proxy':
        proto  => 'tcp',
        port   => '8080',
        srange => '$PRODUCTION_NETWORKS',
    }

    # Monitoring
    monitoring::service { 'squid':
        ensure        => $ensure,
        description   => 'Squid',
        check_command => 'check_tcp!8080',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/HTTP_proxy',
    }
}