From 13ed05f0053a0a93ac099af3446d6d1594bb65b0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 23 Sep 2019 17:38:39 +0200 Subject: [PATCH] give the jenkins roles home directories --- modules/roles/manifests/jenkins.pp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/roles/manifests/jenkins.pp b/modules/roles/manifests/jenkins.pp index a6ab670b6..ccff2990e 100644 --- a/modules/roles/manifests/jenkins.pp +++ b/modules/roles/manifests/jenkins.pp @@ -29,4 +29,30 @@ class roles::jenkins { ensure_packages([ 'debian.org-jenkins.debian.org' ], { ensure => 'installed' }) + + + # home directories + file { [ + '/srv/jenkins.debian.org', + '/srv/jenkins.debian.org/home-adm' + ]: + ensure => directory, + mode => '2755', + owner => 'jenkins-adm', + group => 'jenkins-adm', + } + file { '/home/jenkins-adm': + ensure => link, + target => '/srv/jenkins.debian.org/home-adm', + } + file { '/srv/jenkins.debian.org/home-unpriv': + ensure => directory, + mode => '2755', + owner => 'jenkins', + group => 'jenkins', + } + file { '/home/jenkins': + ensure => link, + target => '/srv/jenkins.debian.org/home-unpriv', + } } -- 2.20.1