bundles/cron: use MAILTO=, rework metadata syntax
This commit is contained in:
parent
533f8075ca
commit
0d865c93d4
22 changed files with 113 additions and 65 deletions
|
@ -59,15 +59,17 @@ nodes['home.nas'] = {
|
|||
# 'zfs-base': 'storage/backups',
|
||||
#},
|
||||
'cron': {
|
||||
# Ensure every user is able to read and write to the NAS dataset.
|
||||
'nas_permissions': '0 3 * * * root '
|
||||
'chown -R :nas /storage/nas/ && '
|
||||
'find /storage/nas/ -type d -exec chmod 0775 {} \; && '
|
||||
'find /storage/nas/ -type f -exec chmod 0664 {} \;',
|
||||
'nas_mixcloud': vault.decrypt('encrypt$gAAAAABgxFkM0Zd8SOhk8aK_zsUY5S39FvyxvEq9TVnAK-ryn9qjrpziqUgNyPXFQBSUHPCV5DX6CW6iSQFGO54truPoaymdHFwchWh3u6bOar_h8x3er3I=').format_into(
|
||||
'0 2 * * * kunsi '
|
||||
'cd /storage/nas/Musik/Compilations && '
|
||||
'wget --mirror --page-requisites --convert-links --domains {0} --execute robots=off https://{0}/'),
|
||||
'jobs': {
|
||||
# Ensure every user is able to read and write to the NAS dataset.
|
||||
'nas_permissions': '0 3 * * * root '
|
||||
'chown -R :nas /storage/nas/ && '
|
||||
'find /storage/nas/ -type d -exec chmod 0775 {} \; && '
|
||||
'find /storage/nas/ -type f -exec chmod 0664 {} \;',
|
||||
'nas_mixcloud': vault.decrypt('encrypt$gAAAAABgxFkM0Zd8SOhk8aK_zsUY5S39FvyxvEq9TVnAK-ryn9qjrpziqUgNyPXFQBSUHPCV5DX6CW6iSQFGO54truPoaymdHFwchWh3u6bOar_h8x3er3I=').format_into(
|
||||
'0 2 * * * kunsi '
|
||||
'cd /storage/nas/Musik/Compilations && '
|
||||
'wget --mirror --page-requisites --convert-links --domains {0} --execute robots=off https://{0}/'),
|
||||
},
|
||||
},
|
||||
'groups': {
|
||||
'nas': {},
|
||||
|
|
|
@ -47,11 +47,13 @@ nodes['home.router'] = {
|
|||
},
|
||||
},
|
||||
'cron': {
|
||||
# Our internet provider resets the connection if you're
|
||||
# connected longer than 24 hours. We install this cronjob
|
||||
# to make sure we don't get disconnected randomly during the
|
||||
# day.
|
||||
'restart_pppd': '23 2 * * * root systemctl restart pppoe && date -u +\%s > /var/tmp/pppd-last-restart.status',
|
||||
'jobs': {
|
||||
# Our internet provider resets the connection if you're
|
||||
# connected longer than 24 hours. We install this cronjob
|
||||
# to make sure we don't get disconnected randomly during the
|
||||
# day.
|
||||
'restart_pppd': '23 2 * * * root systemctl restart pppoe && date -u +\%s > /var/tmp/pppd-last-restart.status',
|
||||
},
|
||||
},
|
||||
'dhcpd': {
|
||||
'subnets': {
|
||||
|
|
|
@ -37,7 +37,9 @@ nodes['htz-cloud.luther'] = {
|
|||
},
|
||||
},
|
||||
'cron': {
|
||||
'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'),
|
||||
'jobs': {
|
||||
'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'),
|
||||
},
|
||||
},
|
||||
'icinga_options': {
|
||||
'pretty_name': 'Lutherkirchengemeinde Pirmasens',
|
||||
|
|
|
@ -34,7 +34,9 @@ nodes['htz-cloud.pleroma'] = {
|
|||
'pretty_name': 'cybert-media.net',
|
||||
},
|
||||
'cron': {
|
||||
'auto-authorize-sm-users': '* * * * * root echo "UPDATE users SET approval_pending=false WHERE email LIKE \'\\%@seibert-media.net\' AND approval_pending=true;" | psql pleroma >/dev/null',
|
||||
'jobs': {
|
||||
'auto-authorize-sm-users': '* * * * * root echo "UPDATE users SET approval_pending=false WHERE email LIKE \'\\%@seibert-media.net\' AND approval_pending=true;" | psql pleroma >/dev/null',
|
||||
},
|
||||
},
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
|
|
|
@ -95,7 +95,9 @@ nodes['rx300'] = {
|
|||
},
|
||||
},
|
||||
'cron': {
|
||||
'cleanup-paste.franzi.business': '0 0 * * * kunsi /usr/bin/find /var/www/paste.franzi.business/ -maxdepth 1 -type d -mtime +60 -exec rm -r {} \;',
|
||||
'jobs': {
|
||||
'cleanup-paste.franzi.business': '0 0 * * * kunsi /usr/bin/find /var/www/paste.franzi.business/ -maxdepth 1 -type d -mtime +60 -exec rm -r {} \;',
|
||||
},
|
||||
},
|
||||
'check-mail-received': {
|
||||
't-online': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue