Backup groups.o.o with bup

Add the required bup resource to perform groups.o.o instance backup,
including scheduled database backup.

Change-Id: I66b308a0fb368b70158a9330a9020b846dad5d70
This commit is contained in:
Marton Kiss 2015-01-09 17:15:13 +01:00
parent f82c676114
commit ed31603d33
1 changed files with 16 additions and 2 deletions

View File

@ -18,6 +18,7 @@ class openstack_project::groups (
$site_admin_password = '',
$site_mysql_host = '',
$site_mysql_password = '',
$site_mysql_user = 'groups',
$conf_cron_key = '',
$sysadmins = [],
$site_ssl_cert_file_contents = undef,
@ -48,7 +49,7 @@ class openstack_project::groups (
site_name => 'groups.openstack.org',
site_root => '/srv/vhosts/groups.openstack.org',
site_mysql_host => $site_mysql_host,
site_mysql_user => 'groups',
site_mysql_user => $site_mysql_user,
site_mysql_password => $site_mysql_password,
site_mysql_database => 'groups',
site_vhost_root => '/srv/vhosts',
@ -73,4 +74,17 @@ class openstack_project::groups (
Vcsrepo['/srv/groups-static-pages'] ],
}
}
mysql_backup::backup_remote { 'groups':
database_host => $site_mysql_host,
database_user => $site_mysql_user,
database_password => $site_mysql_password,
require => Class['drupal'],
}
include bup
bup::site { 'rs-ord':
backup_user => 'bup-groups',
backup_server => 'ci-backup-rs-ord.openstack.org',
}
}