+++ /dev/null
-class roles::keystone {
-
- Exec { logoutput => 'on_failure' }
-
- include roles::openstack::params
-
- $keystone_dbpass = $roles::openstack::params::keystone_dbpass
- $admin_token = $roles::openstack::params::admin_token
- $admin_pass = $roles::openstack::params::admin_pass
- $rabbit_pass = $roles::openstack::params::rabbit_pass
-
- class { '::keystone':
- verbose => true,
- debug => true,
- database_connection => "postgresql://keystone:${keystone_dbpass}@bmdb1.debian.org:5435/keystone",
- catalog_type => 'sql',
- admin_token => $admin_token,
- enabled => false,
- rabbit_host => undef,
- rabbit_hosts => ['rapoport.debian.org','rainier.debian.org'],
- rabbit_password => $rabbit_pass,
- rabbit_userid => 'openstack',
- rabbit_virtual_host => '/keystone',
- memcache_servers => ['localhost:11211'],
- cache_backend => 'keystone.cache.memcache_pool',
- admin_endpoint => 'https://openstack.bm.debian.org:35357/',
- validate_cacert => '/etc/ssl/ca-debian/spi-cacert-2008.pem',
- validate_service => true,
- enable_ssl => true,
- validate_auth_url => 'https://openstack.bm.debian.org:35357/',
- signing_cert_subject => '/C=US/ST=Unset/L=Unset/O=Unset/CN=openstack.bm.debian.org',
- }
- #class { '::keystone::roles::admin':
- # email => 'test@puppetlabs.com',
- # password => $admin_pass,
- #}
- class { '::keystone::endpoint':
- public_url => 'https://openstack.bm.debian.org:5000/',
- admin_url => 'https://openstack.bm.debian.org:35357/',
- }
-
- include ::apache
- class { '::keystone::wsgi::apache':
- ssl => true,
- ssl_cert => '/etc/ssl/certs/openstack.bm.debian.org-chained.pem',
- ssl_key => '/etc/ssl/private/openstack.bm.debian.org.key',
-
- }
-}
-
+++ /dev/null
-class roles::keystone::rabbitmq {
-
- include roles::openstack::params
-
- $rabbit_pass = $roles::openstack::params::rabbit_pass
-
- rabbitmq_vhost { 'keystone':
- ensure => present,
- }
-
- rabbitmq_user { 'openstack':
- admin => false,
- password => $rabbit_pass,
- }
-
- rabbitmq_user_permissions { 'openstack@keystone':
- configure_permission => '.*',
- read_permission => '.*',
- write_permission => '.*',
- }
-}