Add backup scripts to ask.o.o site

Backup resources for bup and pgsql database backup. Need to add
keys and setup user manually at bup server side, as described
in CI doc: http://ci.openstack.org/sysadmin.html#backups

Change-Id: I55cca70f891eb18775b0585532b8c34a0dd40787
Depends-On: I13d542ef5a2a74f14ab42d3421938532edf75f93
This commit is contained in:
Marton Kiss 2015-03-31 12:45:13 +02:00
parent 261fa09059
commit d53f181dc0
2 changed files with 13 additions and 0 deletions

View File

@ -95,6 +95,7 @@ INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-openafs"]="origi
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-openstackci"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-openstackid"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-packagekit"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-pgsql_backup"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-pip"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-planet"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-project_config"]="origin/master"

View File

@ -135,4 +135,16 @@ class openstack_project::ask (
db_password => $db_password,
require => [ Class['redis'], Class['askbot'] ],
}
pgsql_backup::backup { $db_name:
database_user => $db_user,
database_password => $db_password,
require => Postgresql::Server::Db[$db_name],
}
include bup
bup::site { 'rs-ord':
backup_user => 'bup-ask',
backup_server => 'ci-backup-rs-ord.openstack.org',
}
}