Puppet Class: deployment::deployment_server

Defined in:
modules/deployment/manifests/deployment_server.pp

Overview

Class: deployment::deployment_server

Provision a deployment server.

Parameters:

  • $deployment_group: Default value for group ownership of any trebuchet-

    deployed repositories
    

Parameters:

  • deployment_group (Any) (defaults to: undef)


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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'modules/deployment/manifests/deployment_server.pp', line 9

class deployment::deployment_server(
    $deployment_group = undef,
) {
    include ::redis::client::python

    ensure_packages([
        'python-gitdb',
        'python-git',
        ])

    file { '/etc/gitconfig':
        content => template('deployment/gitconfig.erb'),
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        require => Package['git'],
    }

    file { '/usr/local/bin/git-new-workdir':
        source  => 'puppet:///modules/deployment/git-new-workdir',
        mode    => '0555',
        owner   => 'root',
        group   => 'root',
        require => Package['git'],
    }

    file { '/srv/patches':
        ensure => 'directory',
        owner  => 'root',
        group  => $deployment_group,
        mode   => '0775',
    }

    if $::realm != 'labs' {

      group { 'trebuchet':
          ensure => present,
          name   => 'trebuchet',
          system => true,
      }

      user { 'trebuchet':
          shell      => '/bin/false',
          home       => '/nonexistent',
          managehome => false,
          gid        => 'trebuchet',
          system     => true,
      }
    }
}