
The policy.yaml file provided by the UCA package contains wrong modifications since Xena, which is causing consistent API error. This change makes sure the file is purged in Ubuntu to workaround the problem. This change will be reverted once the package file is fixed. Related-Bug: #1987984 Change-Id: I9e6e91c065f994433c9b92d9b84e7c1e6d61f3e5
63 lines
2.1 KiB
Puppet
63 lines
2.1 KiB
Puppet
# Configure the Placement service
|
|
|
|
class openstack_integration::placement {
|
|
|
|
include openstack_integration::config
|
|
include openstack_integration::params
|
|
|
|
include placement
|
|
|
|
if $::openstack_integration::config::ssl {
|
|
openstack_integration::ssl_key { 'placement':
|
|
notify => Service['httpd'],
|
|
require => Package['placement-common'],
|
|
}
|
|
Exec['update-ca-certificates'] ~> Service['httpd']
|
|
}
|
|
|
|
class { 'placement::db::mysql':
|
|
charset => $::openstack_integration::params::mysql_charset,
|
|
collate => $::openstack_integration::params::mysql_collate,
|
|
password => 'placement',
|
|
}
|
|
|
|
class { 'placement::keystone::auth':
|
|
public_url => "${::openstack_integration::config::base_url}:8778",
|
|
internal_url => "${::openstack_integration::config::base_url}:8778",
|
|
admin_url => "${::openstack_integration::config::base_url}:8778",
|
|
password => 'a_big_secret',
|
|
}
|
|
class { 'placement::keystone::authtoken':
|
|
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,
|
|
}
|
|
class { 'placement::logging':
|
|
debug => true,
|
|
}
|
|
class { 'placement::db':
|
|
database_connection => 'mysql+pymysql://placement:placement@127.0.0.1/placement?charset=utf8',
|
|
}
|
|
include placement::db::sync
|
|
# TODO(tkajinam): Remove this once lp bug 1987984 is fixed.
|
|
if $::operatingsystem == 'Ubuntu' {
|
|
class { 'placement::policy':
|
|
purge_config => true
|
|
}
|
|
}
|
|
include placement::api
|
|
include apache
|
|
if ($::operatingsystem != 'Debian') {
|
|
class { 'placement::wsgi::apache':
|
|
bind_host => $::openstack_integration::config::host,
|
|
ssl_key => "/etc/placement/ssl/private/${::fqdn}.pem",
|
|
ssl_cert => $::openstack_integration::params::cert_path,
|
|
ssl => $::openstack_integration::config::ssl,
|
|
workers => '2',
|
|
}
|
|
}
|
|
}
|