2015-12-23 22:54:56 +01:00
|
|
|
class openstack_integration::trove {
|
|
|
|
|
2019-12-08 12:59:28 +01:00
|
|
|
include openstack_integration::config
|
|
|
|
include openstack_integration::params
|
2016-03-30 15:55:40 -04:00
|
|
|
|
2017-09-15 08:33:55 -04:00
|
|
|
openstack_integration::mq_user { 'trove':
|
2015-12-23 22:54:56 +01:00
|
|
|
password => 'an_even_bigger_secret',
|
2017-09-15 08:33:55 -04:00
|
|
|
before => Anchor['trove::service::begin'],
|
2017-01-06 08:57:09 -05:00
|
|
|
}
|
|
|
|
|
2016-03-30 15:55:40 -04:00
|
|
|
if $::openstack_integration::config::ssl {
|
|
|
|
openstack_integration::ssl_key { 'trove':
|
|
|
|
require => Package['trove'],
|
|
|
|
}
|
|
|
|
$key_file = "/etc/trove/ssl/private/${::fqdn}.pem"
|
|
|
|
$crt_file = $::openstack_integration::params::cert_path
|
|
|
|
File[$key_file] ~> Service<| tag == 'trove-service' |>
|
|
|
|
Exec['update-ca-certificates'] ~> Service<| tag == 'trove-service' |>
|
|
|
|
} else {
|
|
|
|
$key_file = undef
|
|
|
|
$crt_file = undef
|
|
|
|
}
|
|
|
|
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::logging':
|
2018-11-27 23:24:00 +01:00
|
|
|
debug => true,
|
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove':
|
2017-01-06 08:57:09 -05:00
|
|
|
default_transport_url => os_transport_url({
|
|
|
|
'transport' => $::openstack_integration::config::messaging_default_proto,
|
|
|
|
'host' => $::openstack_integration::config::host,
|
|
|
|
'port' => $::openstack_integration::config::messaging_default_port,
|
|
|
|
'username' => 'trove',
|
|
|
|
'password' => 'an_even_bigger_secret',
|
|
|
|
}),
|
|
|
|
notification_transport_url => os_transport_url({
|
|
|
|
'transport' => $::openstack_integration::config::messaging_notify_proto,
|
2016-11-09 09:41:17 -07:00
|
|
|
'host' => $::openstack_integration::config::host,
|
2017-01-06 08:57:09 -05:00
|
|
|
'port' => $::openstack_integration::config::messaging_notify_port,
|
2016-11-09 09:41:17 -07:00
|
|
|
'username' => 'trove',
|
|
|
|
'password' => 'an_even_bigger_secret',
|
|
|
|
}),
|
2017-01-06 08:57:09 -05:00
|
|
|
database_connection => 'mysql+pymysql://trove:trove@127.0.0.1/trove?charset=utf8',
|
|
|
|
rabbit_use_ssl => $::openstack_integration::config::ssl,
|
|
|
|
amqp_sasl_mechanisms => 'PLAIN',
|
|
|
|
nova_proxy_admin_pass => 'a_big_secret',
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::db::mysql':
|
2015-12-23 22:54:56 +01:00
|
|
|
password => 'trove',
|
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::keystone::auth':
|
2016-03-30 15:55:40 -04:00
|
|
|
password => 'a_big_secret',
|
|
|
|
public_url => "${::openstack_integration::config::base_url}:8779/v1.0/%(tenant_id)s",
|
|
|
|
internal_url => "${::openstack_integration::config::base_url}:8779/v1.0/%(tenant_id)s",
|
|
|
|
admin_url => "${::openstack_integration::config::base_url}:8779/v1.0/%(tenant_id)s",
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::keystone::authtoken':
|
2018-11-30 11:27:22 +01:00
|
|
|
password => 'a_big_secret',
|
|
|
|
user_domain_name => 'Default',
|
|
|
|
project_domain_name => 'Default',
|
|
|
|
auth_url => $::openstack_integration::config::keystone_admin_uri,
|
|
|
|
www_authenticate_uri => $::openstack_integration::config::keystone_auth_uri,
|
|
|
|
memcached_servers => $::openstack_integration::config::memcached_servers,
|
2016-08-30 14:56:51 -04:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::api':
|
2016-08-30 14:56:51 -04:00
|
|
|
bind_host => $::openstack_integration::config::host,
|
|
|
|
workers => 2,
|
|
|
|
cert_file => $crt_file,
|
|
|
|
key_file => $key_file,
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::client': }
|
|
|
|
class { 'trove::conductor':
|
2016-01-20 16:39:18 -05:00
|
|
|
debug => true,
|
2016-04-01 11:23:59 -04:00
|
|
|
workers => 2,
|
2016-03-30 15:55:40 -04:00
|
|
|
auth_url => $::openstack_integration::config::keystone_auth_uri,
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::taskmanager':
|
2016-05-10 08:10:53 -06:00
|
|
|
debug => true,
|
|
|
|
auth_url => $::openstack_integration::config::keystone_auth_uri,
|
|
|
|
use_guestagent_template => false,
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::quota': }
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|