2 class salsa inherits salsa::params {
4 # anchor things in correct order
5 anchor { 'salsa::begin': } ->
6 class { '::salsa::mail': } ->
7 class { '::salsa::redis': } ->
8 class { '::salsa::packages': } ->
9 class { '::salsa::database': } ->
10 class { '::salsa::web': } ->
11 anchor { 'salsa::end': }
13 # userdir-ldap users get their home in /home
14 file { "/home/${salsa::user}":
16 target => $salsa::home,
21 owner => $salsa::user,
22 group => $salsa::group,
24 file { "/home/${salsa::webhook_user}":
26 target => $salsa::webhook_user_home,
28 file { $salsa::webhook_user_home:
31 owner => $salsa::webhook_user,
32 group => $salsa::webhook_user,
36 file { "${salsa::home}/.credentials.yaml":
38 owner => $salsa::user,
39 group => $salsa::group,
42 # This file is maintained by puppet.
43 # base secret that gitlab encrypts the DB with
44 secret: "${salsa::secret}"
46 name: "${salsa::db_name}"
47 role: "${salsa::db_role}"
48 password: "${salsa::db_password}"
50 username: "${salsa::mail_username}"
51 password: "${salsa::mail_password}"
54 file { "${salsa::home}/.credentials-manual.yaml":
56 owner => $salsa::user,
57 group => $salsa::group,
60 # This file was put in place by puppet, but it won't overwrite it.
61 # Please fill in from dsa-passwords/services-salsa
62 # mastersecret: "swordfish"
66 file { "/var/lib/systemd/linger/${salsa::user}":
69 file { "/var/lib/systemd/linger/${salsa::webhook_user}":
72 file { "/etc/ssh/userkeys/${salsa::user}":
74 target => "${salsa::home}/.ssh/authorized_keys",
77 file { "/etc/network/interfaces.d/pages.debian.net.conf":
79 iface eth0 inet static
80 address 209.87.16.45/24
81 iface eth0 inet6 static
82 address 2607:f8f0:614:1::1274:45/64
85 notify => Exec['service networking reload'],
87 exec { 'service networking reload':