From 324b905524945668bf420f77e6d617911b744617 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 4 Jan 2018 11:04:32 +0100 Subject: [PATCH] And a homedir for the webhook user --- modules/salsa/manifests/init.pp | 11 +++++++++++ modules/salsa/manifests/params.pp | 2 ++ 2 files changed, 13 insertions(+) diff --git a/modules/salsa/manifests/init.pp b/modules/salsa/manifests/init.pp index 5b4934c80..b7c8b0375 100644 --- a/modules/salsa/manifests/init.pp +++ b/modules/salsa/manifests/init.pp @@ -21,6 +21,17 @@ class salsa inherits salsa::params { owner => $salsa::user, group => $salsa::group, } + file { "/home/${salsa::webhook_user}": + ensure => link, + target => $salsa::webhook_user_home, + } + file { $salsa::webhook_user_home: + ensure => directory, + mode => '0755', + owner => $salsa::webhook_user, + group => $salsa::webhook_user, + } + file { "${salsa::home}/.credentials.yaml": mode => '0400', diff --git a/modules/salsa/manifests/params.pp b/modules/salsa/manifests/params.pp index 191b0b992..05e287d39 100644 --- a/modules/salsa/manifests/params.pp +++ b/modules/salsa/manifests/params.pp @@ -5,6 +5,8 @@ class salsa::params { $user = "git" $group = "git" $home = "/srv/${servicename}" + $webhook_user = "salsa-webhook" + $webhook_user_home = "${home}/home-webhook" $db_name = "salsa" $db_role = "salsa" -- 2.20.1