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 (Stdlib::Unixpath) (defaults to: '/var/lib/git')
  • owner (String) (defaults to: 'root')
  • group (String) (defaults to: 'root')
  • gitowner (String) (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 (
    Stdlib::Unixpath $gitdir='/var/lib/git',
    String $owner='root',
    String $group='root',
    String $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/operations/puppet',
        recurse_submodules => true,
        owner              => $gitowner,
        group              => $gitowner,
        require            => File["${gitdir}/operations"],
    }
}