groups/all: do backups
All checks were successful
bundlewrap/pipeline/head This commit looks good

.. except for a couple of nodes which hold no important data
This commit is contained in:
Franzi 2020-11-13 12:59:06 +01:00
parent 45723a4c8a
commit cec8a14dfd
Signed by: kunsi
GPG key ID: 12E3D2136B818350
7 changed files with 28 additions and 4 deletions

View file

@ -2,8 +2,13 @@ groups['all'] = {
'member_patterns': { 'member_patterns': {
r".*", r".*",
}, },
'subgroups': {
# This is only needed because we're overriding stuff in the group.
'home',
},
'bundles': { 'bundles': {
'apt', 'apt',
'backup-client',
'cron', 'cron',
'hostname', 'hostname',
'postfix', 'postfix',
@ -19,6 +24,9 @@ groups['all'] = {
'mail': 'hostmaster@kunsmann.eu', 'mail': 'hostmaster@kunsmann.eu',
}, },
}, },
'backup-client': {
'server': 'franzi-home.kunbox.net',
},
}, },
'pip_command': 'pip3', 'pip_command': 'pip3',
} }

View file

@ -55,6 +55,9 @@ groups['home'] = {
# than our own domains. # than our own domains.
'relayhost': '[mx0.kunbox.net]:2525', 'relayhost': '[mx0.kunbox.net]:2525',
}, },
'backup-client': {
'server': '172.19.138.20',
},
}, },
} }

View file

@ -17,6 +17,9 @@ nodes['gce.dns02'] = {
}, },
}, },
'external_ipv4': '35.187.109.249', 'external_ipv4': '35.187.109.249',
'backups': {
'exclude_from_backups': True,
},
'powerdns': { 'powerdns': {
'my_hostname': 'ns-2.kunbox.net', 'my_hostname': 'ns-2.kunbox.net',
}, },

View file

@ -17,6 +17,9 @@ nodes['gce.dns03'] = {
}, },
}, },
'external_ipv4': '35.228.143.71', 'external_ipv4': '35.228.143.71',
'backups': {
'exclude_from_backups': True,
},
'powerdns': { 'powerdns': {
'my_hostname': 'ns-3.kunbox.net', 'my_hostname': 'ns-3.kunbox.net',
}, },

View file

@ -25,9 +25,6 @@ nodes['htz-cloud.pirmasens'] = {
'redis': {}, 'redis': {},
}, },
}, },
'cron': {
'backup': '0 2 * * * root /root/backup.sh',
},
'nginx': { 'nginx': {
'vhosts': { 'vhosts': {
'mail.kunsmann.info': { 'mail.kunsmann.info': {

View file

@ -70,9 +70,16 @@ nodes['htz.ex42-1048908'] = {
}, },
}, },
}, },
'backups': {
'paths': {
'/home/kunsi/.weechat',
'/opt/matrix/matrix-dimension',
'/opt/matrix/matrix-media-repo',
'/var/matrix',
},
},
'cron': { 'cron': {
# TODO move to a proper bundle # TODO move to a proper bundle
'backup': '0 1 * * * root /root/backup.sh',
'restart_mautrix_whatsapp': '0 3 * * * root systemctl restart matrix-bridge-whatsapp.service', 'restart_mautrix_whatsapp': '0 3 * * * root systemctl restart matrix-bridge-whatsapp.service',
'telekom_nervkram': vault.decrypt('encrypt$gAAAAABfqXi23M96wrSLhqlbhqgePYX06LjPXfyQU2y_07kqYYLztj_PhS1-dk4r5FiiL2Ofmx5iCKW1sZNqiQSuHj2uKaitH0GnwHqj5CI2JwkAS9HrFxw=').format_into('0 0 * * * root date | mail -s \'daily test mail \' -r postmaster@mx0.kunbox.net {}'), 'telekom_nervkram': vault.decrypt('encrypt$gAAAAABfqXi23M96wrSLhqlbhqgePYX06LjPXfyQU2y_07kqYYLztj_PhS1-dk4r5FiiL2Ofmx5iCKW1sZNqiQSuHj2uKaitH0GnwHqj5CI2JwkAS9HrFxw=').format_into('0 0 * * * root date | mail -s \'daily test mail \' -r postmaster@mx0.kunbox.net {}'),
}, },

View file

@ -24,6 +24,9 @@ nodes['rx300'] = {
'dhcp': True, 'dhcp': True,
}, },
}, },
'backups': {
'exclude_from_backups': True,
},
'zfs': { 'zfs': {
'module_options': { 'module_options': {
'zfs_arc_max_mb': 16384, # 16GB 'zfs_arc_max_mb': 16384, # 16GB