39ffc685d6
All hosts are now running thier backups via borg to servers in vexxhost and rax.ord. For reference, the servers being backed up at this time are: borg-ask01 borg-ethercalc02 borg-etherpad01 borg-gitea01 borg-lists borg-review-dev01 borg-review01 borg-storyboard01 borg-translate01 borg-wiki-update-test borg-zuul01 This removes the old bup backup hosts, the no-longer used ansible roles for the bup backup server and client roles, and any remaining bup related configuration. For simplicity, we will remove any remaining bup cron jobs on the above servers manually after this merges. Change-Id: I32554ca857a81ae8a250ce082421a7ede460ea3c
90 lines
2.5 KiB
Puppet
90 lines
2.5 KiB
Puppet
# == Class: openstack_project::storyboard
|
|
#
|
|
class openstack_project::storyboard(
|
|
$mysql_host = '',
|
|
$mysql_password = '',
|
|
$mysql_user = '',
|
|
$rabbitmq_user = 'storyboard',
|
|
$rabbitmq_password,
|
|
$superusers =
|
|
'puppet:///modules/openstack_project/storyboard/superusers.yaml',
|
|
$ssl_cert = undef,
|
|
$ssl_cert_file_contents = undef,
|
|
$ssl_key = undef,
|
|
$ssl_key_file_contents = undef,
|
|
$ssl_chain_file_contents = undef,
|
|
$openid_url = 'https://login.ubuntu.com/+openid',
|
|
$project_config_repo = '',
|
|
$hostname = $::fqdn,
|
|
$valid_oauth_clients = [$::fqdn],
|
|
$cors_allowed_origins = ["https://${::fqdn}"],
|
|
$sender_email_address = undef,
|
|
$default_url = undef,
|
|
) {
|
|
|
|
class { 'project_config':
|
|
url => $project_config_repo,
|
|
}
|
|
|
|
class { 'openstack_project::server': }
|
|
|
|
|
|
class { '::storyboard::mysql':
|
|
mysql_database => 'storyboard',
|
|
mysql_user => $mysql_user,
|
|
mysql_user_password => $mysql_password,
|
|
}
|
|
|
|
mysql_backup::backup { 'storyboard':
|
|
require => Class['::storyboard::mysql'],
|
|
}
|
|
|
|
class { '::storyboard::cert':
|
|
ssl_cert_content => $ssl_cert_file_contents,
|
|
ssl_cert => $ssl_cert,
|
|
ssl_key_content => $ssl_key_file_contents,
|
|
ssl_key => $ssl_key,
|
|
ssl_ca_content => $ssl_chain_file_contents,
|
|
}
|
|
|
|
class { '::storyboard::application':
|
|
hostname => $hostname,
|
|
cors_allowed_origins => $cors_allowed_origins,
|
|
valid_oauth_clients => $valid_oauth_clients,
|
|
cors_max_age => 3600,
|
|
openid_url => $openid_url,
|
|
mysql_host => $mysql_host,
|
|
mysql_database => 'storyboard',
|
|
mysql_user => $mysql_user,
|
|
mysql_user_password => $mysql_password,
|
|
rabbitmq_host => 'localhost',
|
|
rabbitmq_port => 5672,
|
|
rabbitmq_vhost => '/',
|
|
rabbitmq_user => $rabbitmq_user,
|
|
rabbitmq_user_password => $rabbitmq_password,
|
|
sender_email_address => $sender_email_address,
|
|
default_url => $default_url,
|
|
}
|
|
|
|
class { '::storyboard::rabbit':
|
|
rabbitmq_user => $rabbitmq_user,
|
|
rabbitmq_user_password => $rabbitmq_password,
|
|
}
|
|
|
|
class { '::storyboard::workers':
|
|
worker_count => 5,
|
|
}
|
|
|
|
# Load the projects into the database.
|
|
class { '::storyboard::load_projects':
|
|
source => $::project_config::jeepyb_project_file,
|
|
require => $::project_config::config_dir,
|
|
}
|
|
|
|
# Load the superusers into the database
|
|
class { '::storyboard::load_superusers':
|
|
source => $superusers,
|
|
}
|
|
|
|
}
|