Puppet Class: profile::openstack::base::rbd_cloudcontrol

Defined in:
modules/profile/manifests/openstack/base/rbd_cloudcontrol.pp

Overview

Configure rbd/ceph for glance and radosgw

Both services require config in the same files

Parameters:

  • keystone_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::keystone_api_fqdn'))
  • internal_auth_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::keystone::internal_port'))
  • api_bind_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::radosgw::api_bind_port'))
  • radosgw_service_user_pass (String) (defaults to: lookup('profile::openstack::base::radosgw::service_user_pass'))
  • radosgw_service_user (String) (defaults to: lookup('profile::openstack::base::radosgw::service_user'))
  • radosgw_service_user_project (String) (defaults to: lookup('profile::openstack::base::radosgw::service_user_project'))


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/openstack/base/rbd_cloudcontrol.pp', line 4

class profile::openstack::base::rbd_cloudcontrol(
    Stdlib::Fqdn        $keystone_fqdn                = lookup('profile::openstack::base::keystone_api_fqdn'),
    Stdlib::Port        $internal_auth_port           = lookup('profile::openstack::base::keystone::internal_port'),
    Stdlib::Port        $api_bind_port                = lookup('profile::openstack::base::radosgw::api_bind_port'),
    String              $radosgw_service_user_pass    = lookup('profile::openstack::base::radosgw::service_user_pass'),
    String              $radosgw_service_user         = lookup('profile::openstack::base::radosgw::service_user'),
    String              $radosgw_service_user_project = lookup('profile::openstack::base::radosgw::service_user_project'),
    ) {

    $keystone_internal_uri = "https://${keystone_fqdn}:${internal_auth_port}"

    # Many of the settings for this class will be pulled in by the profile
    #  and are DC-specific but not deloyment-specific.  If/when we add a new
    #  region with a new ceph cluster they will need to be overridden
    #  with deployment-specific hiera.
    class { 'profile::cloudceph::client::rbd_cloudcontrol':
        radosgw_port                 => $api_bind_port,
        keystone_internal_uri        => $keystone_internal_uri,
        radosgw_service_user         => $radosgw_service_user,
        radosgw_service_user_project => $radosgw_service_user_project,
        radosgw_service_user_pass    => $radosgw_service_user_pass,
    }
}