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 44 45 46 47 48 49 50 51 52 |
# File 'modules/deployment/manifests/deployment_server.pp', line 5
class deployment::deployment_server(
$trebuchet_email = "trebuchet@${::fqdn}",
) {
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 => '/var/lib/trebuchet',
gid => 'trebuchet',
system => true,
}
file { '/var/lib/trebuchet':
ensure => directory,
owner => 'trebuchet',
group => 'trebuchet',
}
file { '/var/lib/trebuchet/.gitconfig':
content => template('deployment/gitconfig.erb'),
mode => '0444',
owner => 'trebuchet',
group => 'trebuchet',
require => File['/var/lib/trebuchet'],
}
}
}
|