
So we can remove Mongo dependency and save some memory. We already have Swift in Scenario002, so we'll save resources on this job. Also, TripleO is now deploying Zaqar with Swift by default. Depends-On: I9ce1bbc18d02383a5cdd3edbcf8c65c90165fb53 Change-Id: I0e1934dcfbed15405e6c44e4a07890125586eb5a
45 lines
1.2 KiB
Puppet
45 lines
1.2 KiB
Puppet
class openstack_integration::zaqar {
|
|
|
|
include ::openstack_integration::config
|
|
|
|
class { '::zaqar::db::mysql':
|
|
password => 'zaqar',
|
|
}
|
|
class { '::zaqar::keystone::auth':
|
|
password => 'a_big_secret',
|
|
roles => ['admin', 'ResellerAdmin'],
|
|
}
|
|
class {'::zaqar::management::sqlalchemy':
|
|
uri => 'mysql+pymysql://zaqar:zaqar@127.0.0.1/zaqar?charset=utf8',
|
|
}
|
|
class {'::zaqar::messaging::swift':
|
|
auth_url => "${::openstack_integration::config::keystone_auth_uri}/v3",
|
|
uri => 'swift://zaqar:a_big_secret@/services',
|
|
}
|
|
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,
|
|
management_store => 'sqlalchemy',
|
|
message_store => 'swift',
|
|
}
|
|
class {'::zaqar::server':
|
|
service_name => 'httpd',
|
|
}
|
|
include ::apache
|
|
class { '::zaqar::wsgi::apache':
|
|
ssl => false,
|
|
}
|
|
# 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'
|
|
}
|
|
}
|
|
|
|
}
|