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':
|
2023-02-21 15:08:32 +09:00
|
|
|
notify => Service['httpd'],
|
2016-03-30 15:55:40 -04:00
|
|
|
require => Package['trove'],
|
|
|
|
}
|
2023-02-21 15:08:32 +09:00
|
|
|
Exec['update-ca-certificates'] ~> Service['httpd']
|
2016-03-30 15:55:40 -04:00
|
|
|
}
|
|
|
|
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::logging':
|
2018-11-27 23:24:00 +01:00
|
|
|
debug => true,
|
|
|
|
}
|
2022-05-21 13:30:16 +09:00
|
|
|
class { 'trove::db':
|
2023-02-24 14:05:02 +09:00
|
|
|
database_connection => os_database_connection({
|
|
|
|
'dialect' => 'mysql+pymysql',
|
|
|
|
'host' => $::openstack_integration::config::ip_for_url,
|
|
|
|
'username' => 'trove',
|
|
|
|
'password' => 'trove',
|
|
|
|
'database' => 'trove',
|
|
|
|
'charset' => 'utf8',
|
2023-03-20 14:18:09 +09:00
|
|
|
'extra' => $::openstack_integration::config::db_extra,
|
2023-02-24 14:05:02 +09:00
|
|
|
}),
|
2022-05-21 13:30:16 +09:00
|
|
|
}
|
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
|
|
|
rabbit_use_ssl => $::openstack_integration::config::ssl,
|
|
|
|
amqp_sasl_mechanisms => 'PLAIN',
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::db::mysql':
|
2021-08-12 17:48:51 +09:00
|
|
|
charset => $::openstack_integration::params::mysql_charset,
|
2022-08-02 08:17:09 +09:00
|
|
|
collate => $::openstack_integration::params::mysql_collate,
|
2015-12-23 22:54:56 +01:00
|
|
|
password => 'trove',
|
2023-02-24 14:05:02 +09:00
|
|
|
host => $::openstack_integration::config::host,
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
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
|
|
|
}
|
2022-01-08 12:50:10 +09:00
|
|
|
class { 'trove::api::service_credentials':
|
|
|
|
password => 'a_big_secret',
|
|
|
|
auth_url => $::openstack_integration::config::keystone_auth_uri,
|
|
|
|
}
|
2023-02-21 15:08:32 +09:00
|
|
|
include apache
|
|
|
|
class { 'trove::wsgi::apache':
|
2016-08-30 14:56:51 -04:00
|
|
|
bind_host => $::openstack_integration::config::host,
|
2023-02-21 15:08:32 +09:00
|
|
|
ssl => $::openstack_integration::config::ssl,
|
2023-03-01 10:29:37 +09:00
|
|
|
ssl_key => "/etc/trove/ssl/private/${facts['networking']['fqdn']}.pem",
|
2023-02-21 15:08:32 +09:00
|
|
|
ssl_cert => $::openstack_integration::params::cert_path,
|
2016-08-30 14:56:51 -04:00
|
|
|
workers => 2,
|
2023-02-21 15:08:32 +09:00
|
|
|
}
|
|
|
|
class { 'trove::api':
|
|
|
|
bind_host => $::openstack_integration::config::host,
|
|
|
|
service_name => 'httpd',
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::client': }
|
|
|
|
class { 'trove::conductor':
|
2022-01-08 12:50:10 +09:00
|
|
|
workers => 2,
|
|
|
|
}
|
|
|
|
class { 'trove::guestagent::service_credentials':
|
|
|
|
password => 'a_big_secret',
|
|
|
|
auth_url => $::openstack_integration::config::keystone_auth_uri
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|
2023-02-20 14:11:20 +09:00
|
|
|
class { 'trove::taskmanager': }
|
2019-12-08 12:59:28 +01:00
|
|
|
class { 'trove::quota': }
|
2015-12-23 22:54:56 +01:00
|
|
|
}
|