Puppet Class: puppetmaster::base_repo

Defined in:
modules/puppetmaster/manifests/base_repo.pp

Overview

Class puppetmaster::base_repo

Checkout the base git repo for operations/puppet

Parameters:

  • gitdir (Any) (defaults to: '/var/lib/git')
  • owner (Any) (defaults to: 'root')
  • group (Any) (defaults to: 'root')
  • gitowner (Any) (defaults to: 'root')


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/puppetmaster/manifests/base_repo.pp', line 5

class puppetmaster::base_repo (
    $gitdir='/var/lib/git',
    $owner='root',
    $group='root',
    $gitowner='root',
) {

    file { [$gitdir, "${gitdir}/operations"]:
        ensure => directory,
        owner  => $owner,
        group  => $group,
        mode   => '0755',
    }
    git::clone { 'operations/puppet':
        directory          => "${gitdir}/operations/puppet",
        branch             => 'production',
        origin             => 'https://gerrit.wikimedia.org/r/p/operations/puppet',
        recurse_submodules => true,
        owner              => $gitowner,
        group              => $gitowner,
        require            => File["${gitdir}/operations"],
    }
}