owner => $salsa::user,
group => $salsa::group,
}
+ file { "/home/${salsa::registry_user}":
+ ensure => link,
+ target => $salsa::registry_user_home,
+ }
+ file { $salsa::registry_user_home:
+ ensure => directory,
+ mode => '0755',
+ owner => $salsa::registry_user,
+ group => $salsa::registry_user,
+ }
+ file { "/home/${salsa::signup_user}":
+ ensure => link,
+ target => $salsa::signup_user_home,
+ }
+ file { $salsa::signup_user_home:
+ ensure => directory,
+ mode => '0755',
+ owner => $salsa::signup_user,
+ group => $salsa::signup_user,
+ }
file { "/home/${salsa::webhook_user}":
ensure => link,
target => $salsa::webhook_user_home,
owner => $salsa::webhook_user,
group => $salsa::webhook_user,
}
+ file { "/home/${salsa::pages_user}":
+ ensure => link,
+ target => $salsa::pages_user_home,
+ }
+ file { $salsa::pages_user_home:
+ ensure => directory,
+ mode => '0755',
+ owner => $salsa::pages_user,
+ group => $salsa::pages_user,
+ }
file { "${salsa::home}/.credentials.yaml":
file { "/var/lib/systemd/linger/${salsa::user}":
ensure => present,
}
+ file { "/var/lib/systemd/linger/${salsa::registry_user}":
+ ensure => present,
+ }
+ file { "/var/lib/systemd/linger/${salsa::signup_user}":
+ ensure => present,
+ }
file { "/var/lib/systemd/linger/${salsa::webhook_user}":
ensure => present,
}
+ file { "/var/lib/systemd/linger/${salsa::pages_user}":
+ ensure => present,
+ }
file { "/etc/ssh/userkeys/${salsa::user}":
ensure => link,
target => "${salsa::home}/.ssh/authorized_keys",
$user = "git"
$group = "git"
$home = "/srv/${servicename}"
+ $registry_user = "salsa-registry"
+ $registry_user_home = "/srv/registry.${servicename}"
+ $signup_user = "salsa-signup"
+ $signup_user_home = "/srv/signup.${servicename}"
$webhook_user = "salsa-webhook"
- $webhook_user_home = "${home}/home-webhook"
+ $webhook_user_home = "/srv/webhook.${servicename}"
+ $pages_user = "salsa-pages"
+ $pages_user_home = "/srv/pages.debian.net"
$db_name = "salsa"
$db_role = "salsa"
%gitdoadm ALL=(gitdoadm) ALL
# the git user also exists on adayevskaya where it's a different service..
%gitdoadm godard=(git) ALL
+%gitdoadm godard=(salsa-registry) ALL
+%gitdoadm godard=(salsa-signup) ALL
%gitdoadm godard=(salsa-webhook) ALL
+%gitdoadm godard=(salsa-pages) ALL
%keyring ALL=(keyring) ALL
%jenkins-adm ALL=(jenkins-adm) ALL
%lintian ALL=(lintian) ALL