puppet-openstack-integration/manifests/zaqar.pp
ZhongShengping b7c73daa13 Re-enable zaqar testing on Ubuntu
Already have these packages of zaqar in latest UCA[0],
so re-enable zaqar testing on Ubuntu.

[0]: http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/xenial-updates/newton/main/binary-amd64/Packages

Depends-On: https://review.openstack.org/#/c/399980/
Change-Id: Idb1521ce56c600027e8686652045a6963adae9b6
2016-11-30 10:57:06 +08:00

40 lines
1.1 KiB
Puppet

class openstack_integration::zaqar {
include ::openstack_integration::config
class { '::zaqar::keystone::auth':
password => 'a_big_secret',
}
# TODO(zhongshengping): temporarily added this package
if $::osfamily == 'Debian' {
package { 'python-pymongo':
ensure => present,
}
}
$zaqar_mongodb_conn_string = 'mongodb://127.0.0.1:27017'
class {'::zaqar::management::mongodb':
uri => $zaqar_mongodb_conn_string
}
class {'::zaqar::messaging::mongodb':
uri => $zaqar_mongodb_conn_string
}
class {'::zaqar::keystone::authtoken':
auth_url => $::openstack_integration::config::keystone_admin_uri,
auth_uri => $::openstack_integration::config::keystone_auth_uri,
password => 'a_big_secret',
}
class {'::zaqar':
unreliable => true,
}
Mongodb_replset['openstack'] -> Package['zaqar-common']
include ::zaqar::server
# run a second instance using websockets, the Debian system does
# not support the use of services to run a second instance.
if $::osfamily == 'RedHat' {
zaqar::server_instance{ '1':
transport => 'websocket'
}
}
}