fuel-library/deployment/puppet/ceph/manifests/keystone.pp

23 lines
805 B
Puppet

#ceph::keystone will configure keystone with ceph parts
class ceph::keystone (
$pub_ip = $::ceph::rgw_pub_ip,
$pub_protocol = 'http',
$adm_ip = $::ceph::rgw_adm_ip,
$int_ip = $::ceph::rgw_int_ip,
$region = 'RegionOne',
$swift_endpoint_port = $::ceph::swift_endpoint_port,
) {
keystone_service {'swift':
ensure => present,
type => 'object-store',
description => 'Openstack Object-Store Service',
}
keystone_endpoint {"${region}/swift":
ensure => present,
public_url => "${pub_protocol}://${pub_ip}:${swift_endpoint_port}/swift/v1",
admin_url => "http://${adm_ip}:${swift_endpoint_port}/swift/v1",
internal_url => "http://${int_ip}:${swift_endpoint_port}/swift/v1",
}
}