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

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

Overview

SPDX-License-Identifier: Apache-2.0

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.

Parameters:

  • http_proxy (Optional[Stdlib::HTTPUrl]) (defaults to: lookup('http_proxy'))


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

class profile::analytics::cluster::gitconfig (
    Optional[Stdlib::HTTPUrl] $http_proxy = lookup('http_proxy'),
) {

    # 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 $http_proxy {
        git::systemconfig { 'setup_http_proxy':
            settings => {
                # https://wikitech.wikimedia.org/wiki/HTTP_proxy
                'http'  => {
                    'proxy' => $http_proxy,
                },
                'https' => {
                    'proxy' => $http_proxy,
                },
            },
        }
    }
}