Newer
Older
class iaas::profile::cinder (
$password = undef,
$public_interface = hiera('iaas::public_interface', undef),
$secret = undef,
$volume_size = undef,
$region = hiera('iaas::region', undef),
$endpoint = hiera('iaas::role::endpoint::main_address', undef),
#Costa - added $rhosts
$rhosts = hiera('iaas::profile::rabbitmq::rhosts', undef),
$rabbitmq_user = hiera('iaas::profile::rabbitmq::user', undef),
$rabbitmq_password = hiera('iaas::profile::rabbitmq::password', undef),
) {
#Costa
# include iaas::resources::connectors
#Costa
# iaas::resources::database { 'cinder': }
class { '::cinder':
database_connection => $iaas::resources::connectors::cinder,
#Costa - added rabbit_hosts
# rabbit_host => $endpoint,
rabbit_hosts => $rhosts,
rabbit_userid => $rabbitmq_user,
rabbit_password => $rabbitmq_password,
mysql_module => '2.3',
Quentin MACHU
committed
database_idle_timeout => 3,
}
class { '::cinder::glance':
glance_api_servers => [ "${endpoint}:9292" ],
}
class { '::cinder::keystone::auth':
password => $password,
public_address => $endpoint,
admin_address => $endpoint,
internal_address => $endpoint,
region => $region,
}
class { '::cinder::api':
keystone_password => $password,
auth_uri => "http://${endpoint}:5000/v2.0",
identity_uri => "http://${endpoint}:35357",
}
class { '::cinder::scheduler':
scheduler_driver => 'cinder.scheduler.simple.SimpleScheduler',
}
class { '::cinder::setup_test_volume':
volume_name => 'cinder-volumes',
size => $volume_size
} ->
class { '::cinder::volume::rbd':
rbd_pool => 'volumes',
rbd_user => 'cinder',
Quentin MACHU
committed
rbd_secret_uuid => $secret,
}
#Costa
# class { '::cinder::backup': }
# class { '::cinder::backup::ceph':
# backup_ceph_user => 'cinder-backup',
# }
# @@haproxy::balancermember { "cinder_api_${::fqdn}":
# listening_service => 'cinder_api_cluster',
# server_names => $::hostname,
# ipaddresses => $::facts["ipaddress_${public_interface}"],
# ports => '8776',
# options => 'check inter 2000 rise 2 fall 5',
# }