Puppet Class: profile::analytics::cluster::gitconfig

Defined in:
modules/profile/manifests/analytics/cluster/gitconfig.pp

Overview

Class profile::analytic::cluster::gitconfig

Set system level git config properties to be picked up by all the git::clones done whithin the Analytics Cluster/VLAN.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'modules/profile/manifests/analytics/cluster/gitconfig.pp', line 7

class profile::analytics::cluster::gitconfig {

    # Specific global git config for all the Analytics VLAN
    # to force every user to use the Production Webproxy.
    # This is useful to avoid HTTP/HTTPS calls ending up
    # being blocked by the VLAN's firewall rules, avoiding
    # all the users to set up their own settings.
    # Not needed in labs.
    if $::realm == 'production' {
        class { 'git::systemconfig':
            settings => {
                # https://wikitech.wikimedia.org/wiki/HTTP_proxy
                'http'  => {
                    'proxy' => "http://webproxy.${::site}.wmnet:8080"
                },
                'https' => {
                    'proxy' => "http://webproxy.${::site}.wmnet:8080"
                },
            },
        }
    }
}