Backup review and wiki MySQL DBs.
* modules/openstack_project/manifests/review_dev.pp: Remove mysql_backup, gerrit.pp will do this for review_dev now. * modules/openstack_project/manifests/gerrit.pp: Put MySQL backups in central Gerrit manifest. This will backup MySQL locally for review and review-dev. * modules/openstack_project/manifests/wiki.pp: Backup wiki MySQL DB locally wth the mysql_backup module. These changes make it possible to do offsite DB backups with bup by first backing up the databases locally. Change-Id: I932b439c153e461fa9c6b454e132137949bd08df
This commit is contained in:
parent
3a9422657b
commit
23896c8094
@ -158,6 +158,11 @@ class openstack_project::gerrit (
|
||||
testmode => $testmode,
|
||||
require => Class[openstack_project::server],
|
||||
}
|
||||
|
||||
mysql_backup::backup { 'gerrit':
|
||||
require => Class['::gerrit'],
|
||||
}
|
||||
|
||||
if ($testmode == false) {
|
||||
class { 'gerrit::cron':
|
||||
script_user => $script_user,
|
||||
|
@ -79,10 +79,6 @@ class openstack_project::review_dev (
|
||||
],
|
||||
}
|
||||
|
||||
mysql_backup::backup { 'review-dev':
|
||||
require => Class['openstack_project::gerrit'],
|
||||
}
|
||||
|
||||
file { '/var/log/gerrit_user_sync':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
|
@ -47,6 +47,10 @@ class openstack_project::wiki (
|
||||
}
|
||||
include mysql::server::account_security
|
||||
|
||||
mysql_backup::backup { 'wiki':
|
||||
require => Class['mysql::server'],
|
||||
}
|
||||
|
||||
include bup
|
||||
bup::site { 'rs-ord':
|
||||
backup_user => 'bup-wiki',
|
||||
|
Loading…
x
Reference in New Issue
Block a user