mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
puppet: Move pg_backup_and_purge to main config.
This commit is contained in:
parent
81136ff092
commit
bdb1ce04a2
@ -40,4 +40,13 @@ class zulip::postgres_common {
|
||||
mode => 750,
|
||||
source => "puppet:///modules/zulip/postgresql/env-wal-e",
|
||||
}
|
||||
|
||||
file { "/usr/local/bin/pg_backup_and_purge.py":
|
||||
ensure => file,
|
||||
owner => "root",
|
||||
group => "postgres",
|
||||
mode => 754,
|
||||
source => "puppet:///modules/zulip/postgresql/pg_backup_and_purge.py",
|
||||
require => File["/usr/local/bin/env-wal-e"],
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,15 +16,6 @@ class zulip_internal::postgres_common {
|
||||
'python-gevent', 'lzop', 'pv'],
|
||||
}
|
||||
|
||||
file { "/usr/local/bin/pg_backup_and_purge.py":
|
||||
ensure => file,
|
||||
owner => "root",
|
||||
group => "postgres",
|
||||
mode => 754,
|
||||
source => "puppet:///modules/zulip_internal/postgresql/pg_backup_and_purge.py",
|
||||
require => File["/usr/local/bin/env-wal-e"],
|
||||
}
|
||||
|
||||
cron { "pg_backup_and_purge":
|
||||
command => "/usr/local/bin/pg_backup_and_purge.py",
|
||||
ensure => present,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user