From ccd4f2e5548c1b4b61e36ae39ddd368509642cb4 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 11 Dec 2023 11:18:22 +0200 Subject: [PATCH] remove other units --- manifests/init.pp | 66 ----------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index b7437ba..e32c922 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -472,39 +472,6 @@ class mastodon ( } # # Maintenance tasks - $_timer_duplicates = @("EOT") - [Unit] - Description=Mastodon - Fix duplicates - - [Timer] - OnBootSec=24min - OnUnitActiveSec=1d - Unit=mastodon_fix_duplicates.service - - [Install] - WantedBy=timers.target - | EOT - - $_service_duplicates = @("EOT") - [Service] - Type=simple - User=${mastodon_user} - WorkingDirectory=${mastodon_home}/live - Environment='RAILS_ENV=production' 'PATH=${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' - ExecStart=/opt/mastodon/live/bin/tootctl maintenance fix-duplicates - - [Unit] - OnFailure=status_email_antoniodelgado@%n.service - | EOT - - systemd::timer { 'mastodon_fix_duplicates.timer': - ensure => present, - timer_content => $_timer_duplicates, - service_unit => 'mastodon_fix_duplicates.service', - service_content => $_service_duplicates, - active => true, - enable => true, - } $_timer_remove_media = @("EOT") [Unit] Description=Mastodon - Remove old media @@ -538,39 +505,6 @@ class mastodon ( active => true, enable => true, } - $_timer_remove_orphans = @("EOT") - [Unit] - Description=Mastodon - Remove orphans - - [Timer] - OnBootSec=24min - OnUnitActiveSec=1d - Unit=mastodon_remove_orphans.service - - [Install] - WantedBy=timers.target - | EOT - - $_service_remove_orphans = @("EOT") - [Service] - Type=simple - User=${mastodon_user} - WorkingDirectory=${mastodon_home}/live - Environment='RAILS_ENV=production' 'PATH=${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' - ExecStart=/opt/mastodon/live/bin/tootctl remove-orphans - - [Unit] - OnFailure=status_email_antoniodelgado@%n.service - | EOT - - systemd::timer { 'mastodon_remove_orphans.timer': - ensure => present, - timer_content => $_timer_remove_orphans, - service_unit => 'mastodon_remove_orphans.service', - service_content => $_service_remove_orphans, - active => true, - enable => true, - } $_timer_remove_cards = @("EOT") [Unit] Description=Mastodon - Remove old media