system-config/modules/gerrit/manifests/user.pp
Khai Do 583be07992 puppetize installation of gerrit third party plugins
This change automates the installation of gerrit third party plugins.  This
does not include core plugins, which have already been automated.  The first
third party plugin that we automate is the javamelody plugin.

Change-Id: I163353c2e9d59e4815b4544f983b54d68ede70a8
2014-07-08 21:27:15 -07:00

28 lines
510 B
Puppet

# == Class: gerrit::user
#
class gerrit::user {
group { 'gerrit2':
ensure => present,
}
user { 'gerrit2':
ensure => present,
comment => 'Gerrit2 User',
home => '/home/gerrit2',
gid => 'gerrit2',
shell => '/bin/bash',
membership => 'minimum',
require => Group['gerrit2'],
}
file { '/home/gerrit2':
ensure => directory,
owner => 'gerrit2',
group => 'gerrit2',
mode => '0644',
require => User['gerrit2'],
}
}