include "profile::xmr_stak"
include "profile::known_hosts"
include "profile::boinc"
- include "role::cryptoportfolio::postgresql_backup"
+
+ include "role::backup::postgresql"
ensure_packages(["rsync"])
-class role::cryptoportfolio::postgresql_backup inherits role::backup {
+class role::backup::postgresql inherits role::backup {
# This manifest is supposed to be part of the backup server
$password_seed = lookup("base_installation::puppet_pass_seed")
ensure_packages(["postgresql"])
- $pg_backup_hosts = ["cryptoportfolio-dev.immae.eu", "cryptoportfolio.immae.eu"]
+ $pg_backup_hosts = lookup("role::backup::postgresql::backup_hosts", { "default_value" => [] })
$pg_backup_hosts.each |$pg_backup_host| {
$pg_path = "$mountpoint/$pg_backup_host/postgresql"
owner => $pg_user,
group => $pg_group,
mode => '0640',
- content => template("role/cryptoportfolio/postgresql_backup.conf.erb"),
+ content => template("role/backup/postgresql.conf.erb"),
}
service { "postgresql_backup@$pg_backup_host":
mode => "0644",
owner => "root",
group => "root",
- content => template("role/cryptoportfolio/postgresql_backup@.service.erb"),
+ content => template("role/backup/postgresql_backup@.service.erb"),
}
}