bundles: add backup paths

This commit is contained in:
Franzi 2020-11-13 12:37:26 +01:00
parent f71653e3ce
commit 0749fc75c5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 60 additions and 2 deletions

View file

@ -102,6 +102,7 @@ pkg_apt = {
'python3-dev': {},
'python3-pip': {},
'python3-virtualenv': {},
'rsync': {},
'tar': {},
'tcpdump': {},
'telnet': {},

View file

@ -1,4 +1,9 @@
defaults = {
'backups': {
'paths': {
'/home/git',
},
},
'gitea': {
'database': {
'username': 'gitea',

View file

@ -16,4 +16,9 @@ defaults = {
},
},
},
'backups': {
'paths': {
'/var/lib/jenkins',
},
},
}

View file

@ -22,6 +22,11 @@ defaults = {
'xserver-xorg-legacy': {},
},
},
'backups': {
'paths': {
'/home/kodi',
},
},
'users': {
'kodi': {
'groups': {

View file

@ -11,6 +11,11 @@ defaults = {
'matrix-synapse-py3': {},
},
},
'backups': {
'paths': {
'/var/lib/matrix-synapse',
},
},
'matrix-synapse': {
'registration_shared_secret': repo.vault.human_password_for('{} matrix-synapse registration_shared_secret'.format(node.name)),
'database': {

View file

@ -11,6 +11,11 @@ defaults = {
'nginx': {},
},
},
'backups': {
'paths': {
'/var/www',
},
},
'icinga2_api': {
'nginx': {
'services': {

View file

@ -1,4 +1,9 @@
defaults = {
'backups': {
'paths': {
'/opt/octoprint',
},
},
'users': {
'octoprint': {
'home': '/opt/octoprint',

View file

@ -19,6 +19,12 @@ defaults = {
}
if node.has_bundle('postfixadmin'):
defaults['backups'] = {
'paths': {
'/var/mail',
},
}
defaults['icinga2_api']['postfix']['services'].update({
'SPAM BLOCKLIST': {
'check_command': 'spam_blocklist',

View file

@ -1,4 +1,10 @@
defaults = {}
defaults = {
'backups': {
'paths': {
'/var/lib/postgresql',
},
},
}
if node.has_bundle('zfs'):
defaults['zfs'] = {

View file

@ -4,4 +4,9 @@ defaults = {
'python3-radicale': {},
},
},
'backups': {
'paths': {
'/var/lib/radicale',
},
},
}

View file

@ -16,6 +16,11 @@ defaults = {
'rspamd': {},
},
},
'backups': {
'paths': {
'/var/lib/rspamd',
},
},
'cron': {
'clamav-unofficial-sigs': f'{node.magic_number%60} */4 * * * clamav /usr/sbin/clamav-unofficial-sigs >/dev/null 2>&1',
},

View file

@ -7,4 +7,9 @@ defaults = {
'python3-pip': {},
},
},
'backups': {
'paths': {
'/opt/seafile',
},
},
}