Puppet Class: deployment::deployment_server

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

Overview

Class: deployment::deployment_server

Provision a deployment server for scap3 services.



5
6
7
8
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
# File 'modules/deployment/manifests/deployment_server.pp', line 5

class deployment::deployment_server() {
    include ::redis::client::python

    ensure_packages([
        'python-gitdb',
        'python-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/deployment':
        ensure => directory,
        owner  => 'trebuchet',
        group  => 'wikidev',
    }

    if $::realm != 'labs' {

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

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