diff --git a/manifests/init.pp b/manifests/init.pp index d6e952e..b6cf941 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -225,6 +225,12 @@ class mastodon ( postgresql::server::db { $db_name: user => $db_user, password => postgresql::postgresql_password($db_user, $db_password), + grant => 'ALL', + } + postgresql::server::database_grant { "${db_user}_${db_name}" : + privilege => 'ALL', + db => $db_name, + role => $db_user, } vcsrepo { 'mastodon_code': path => "${mastodon_home}/live", @@ -451,4 +457,9 @@ class mastodon ( require => File["${mastodon_home}/live/.env.production"], } } + # Maintenance tasks + # tootctl maintenance fix-duplicates + # tootctl media remove --days 180 + # tootctl media remove-orphans + # tootctl preview_cards remove --days 180 }