add grant
This commit is contained in:
parent
1200d3528a
commit
7cf6a829c4
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue