Remove the backup gem from Mastodon

The shared backup cookbook hardcodes postgresql-client-12, which does not exist on Ubuntu 24.04. Drop the Mastodon backup recipe and its role inclusion; the PostgreSQL standby is the safety net. The backup cookbook itself is still used by other services.
This commit is contained in:
raucao committed 2026-10-07 17:53:57 +02:00
1 parent ec2645c5da
commit 9dfdf6bc9b
3 files changed
-19

No files matched your search

-1
View File
@@ -8,5 +8,4 @@ run_list %w(
role[postgresql_client]
kosmos-mastodon::libretranslate
kosmos-mastodon
kosmos-mastodon::backup
)
@@ -6,7 +6,6 @@ description 'Installs/Configures Mastodon'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.1'
depends 'backup'
depends 'elasticsearch'
depends 'firewall'
depends 'postgresql'
@@ -1,17 +0,0 @@
#
# Cookbook Name:: kosmos-mastodon
# Recipe:: backup
#
postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
unless node.chef_environment == "development"
node.override['backup']['s3']['keep'] = 1
node.override["backup"]["postgresql"]["host"] = "pg.kosmos.local"
node.override["backup"]["postgresql"]["databases"]["mastodon"] = {
username: "mastodon",
password: postgresql_data_bag_item['mastodon_user_password']
}
include_recipe "backup"
end