add grant

This commit is contained in:
Antonio J. Delgado 2023-11-28 21:31:06 +02:00
parent 1200d3528a
commit 7cf6a829c4

View file

@ -225,6 +225,12 @@ class mastodon (
postgresql::server::db { $db_name: postgresql::server::db { $db_name:
user => $db_user, user => $db_user,
password => postgresql::postgresql_password($db_user, $db_password), 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': vcsrepo { 'mastodon_code':
path => "${mastodon_home}/live", path => "${mastodon_home}/live",
@ -451,4 +457,9 @@ class mastodon (
require => File["${mastodon_home}/live/.env.production"], 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
} }