puppet-openstack-integration/manifests/keystone.pp
Emilien Macchi e98749b983 repos: bump RDO to latest OpenStack commit
RDO did not promote packaging since some time, so we continue to update
repos.pp manually with recent commits, so we can move forward into
Mitaka cycle.

Setting paste_config to 'keystone-paste.ini' in ::keystone, since RDO is now using
/etc/keystone/keystone-paste.ini and not
/usr/share/keystone/keystone-paste.ini by default.

Change-Id: I8ab741c91a73bb3d016fd4c23664e44f6bdf473a
2016-02-17 14:32:07 -05:00

64 lines
2.0 KiB
Puppet

# Configure the Keystone service
#
# [*default_domain*]
# (optional) Define the default domain id.
# Set to 'undef' for 'Default' domain.
# Default to undef.
#
# [*using_domain_config*]
# (optional) Eases the use of the keystone_domain_config resource type.
# It ensures that a directory for holding the domain configuration is present
# and the associated configuration in keystone.conf is set up right.
# Defaults to false
#
class openstack_integration::keystone (
$default_domain = undef,
$using_domain_config = false,
) {
class { '::keystone::client': }
class { '::keystone::cron::token_flush': }
class { '::keystone::db::mysql':
password => 'keystone',
}
class { '::keystone':
verbose => true,
debug => true,
database_connection => 'mysql+pymysql://keystone:keystone@127.0.0.1/keystone',
admin_token => 'admin_token',
enabled => true,
service_name => 'httpd',
default_domain => $default_domain,
using_domain_config => $using_domain_config,
# RDO is now using default value (keystone-paste.ini)
# so we make sure the value is undef for both distros.
# once this patch will be merged, we'll patch puppet-keystone to drop default in params.pp
# and drop this parameter here.
paste_config => 'keystone-paste.ini',
}
include ::apache
class { '::keystone::wsgi::apache':
ssl => false,
workers => 2,
}
class { '::keystone::roles::admin':
email => 'test@example.tld',
password => 'a_big_secret',
}
class { '::keystone::endpoint':
default_domain => $default_domain,
}
class { '::keystone::disable_admin_token_auth': }
if $default_domain {
$default_domain_real = $default_domain
} else {
$default_domain_real = 'default'
}
class { '::openstack_extras::auth_file':
password => 'a_big_secret',
project_domain => $default_domain_real,
user_domain => $default_domain_real,
}
}