ddcb1b4786
The rabbit_host, rabbit_hosts, rabbit_userid, rabbit_password, rabbit_port and rabbit_virtual_host parameters are being deprecated. This change updates the p-o-i tests to use the default_transport_url for the rabbit connection instead. Change-Id: Icb15ad3b5d75a35afcb685f4ae03c5755031fc3d Depends-On: I43ac3079da9e52179457ca1a34f4faee60d5617b Depends-On: Ie63457370ae37ef5af5878b1a97b8bafa80a8189 Depends-On: Ia0c5b5072431bbc186c8b96b7f034e68e9248af3 Depends-On: I43500ac7be4296ea534266fa14ca37fc700b0092 Depends-On: If4dfe8b82518fc4e590731a805ee3115b11f4f47 Depends-On: I00d4782693c1f67b82673624d4d36822c9762303 Depends-On: If83c0f0e61a08061334536399a42767a305966b7
79 lines
2.8 KiB
Puppet
79 lines
2.8 KiB
Puppet
class openstack_integration::barbican {
|
|
|
|
include ::openstack_integration::config
|
|
include ::openstack_integration::params
|
|
|
|
rabbitmq_user { 'barbican':
|
|
admin => true,
|
|
password => 'an_even_bigger_secret',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
rabbitmq_user_permissions { 'barbican@/':
|
|
configure_permission => '.*',
|
|
write_permission => '.*',
|
|
read_permission => '.*',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
Rabbitmq_user_permissions['barbican@/'] -> Service<| tag == 'barbican-service' |>
|
|
|
|
if $::openstack_integration::config::ssl {
|
|
openstack_integration::ssl_key { 'barbican':
|
|
notify => Service['httpd'],
|
|
require => Package['barbican-api'],
|
|
}
|
|
Exec['update-ca-certificates'] ~> Service['httpd']
|
|
}
|
|
|
|
include ::barbican
|
|
class { '::barbican::db::mysql':
|
|
password => 'barbican',
|
|
}
|
|
class { '::barbican::db':
|
|
database_connection => 'mysql+pymysql://barbican:barbican@127.0.0.1/barbican?charset=utf8',
|
|
}
|
|
class { '::barbican::keystone::auth':
|
|
public_url => "${::openstack_integration::config::base_url}:9311",
|
|
internal_url => "${::openstack_integration::config::base_url}:9311",
|
|
admin_url => "${::openstack_integration::config::base_url}:9311",
|
|
password => 'a_big_secret',
|
|
}
|
|
include ::barbican::quota
|
|
include ::barbican::keystone::notification
|
|
class { '::barbican::api::logging':
|
|
debug => true,
|
|
}
|
|
class { '::barbican::keystone::authtoken':
|
|
password => 'a_big_secret',
|
|
auth_url => "${::openstack_integration::config::keystone_admin_uri}/v3",
|
|
auth_uri => "${::openstack_integration::config::keystone_auth_uri}/v3",
|
|
user_domain_name => 'Default',
|
|
project_domain_name => 'Default',
|
|
}
|
|
class { '::barbican::api':
|
|
default_transport_url => os_transport_url({
|
|
'transport' => 'rabbit',
|
|
'host' => $::openstack_integration::config::host,
|
|
'port' => $::openstack_integration::config::rabbit_port,
|
|
'username' => 'barbican',
|
|
'password' => 'an_even_bigger_secret',
|
|
}),
|
|
host_href => "${::openstack_integration::config::base_url}:9311",
|
|
auth_strategy => 'keystone',
|
|
service_name => 'httpd',
|
|
enabled_certificate_plugins => ['simple_certificate'],
|
|
db_auto_create => false,
|
|
rabbit_use_ssl => $::openstack_integration::config::ssl,
|
|
}
|
|
include ::apache
|
|
class { '::barbican::wsgi::apache':
|
|
bind_host => $::openstack_integration::config::ip_for_url,
|
|
ssl => $::openstack_integration::config::ssl,
|
|
ssl_key => "/etc/barbican/ssl/private/${::fqdn}.pem",
|
|
ssl_cert => $::openstack_integration::params::cert_path,
|
|
workers => 2,
|
|
}
|
|
|
|
}
|