bc1ff1d7cb
This class combines the keystone-manage bootstrap command from init, the keystone::endpoint functionality that manages the keystone endpoints and the keystone::roles::admin class that manages users and projects. This is one of the steps to make sure we only have a single point of entry for bootstrapping (keystone-manage bootstrap) and then only managing resources after that. This is especially required since we are getting rid of the admin token and cannot manage resources before keystone-manage bootstrap has created the user, project, service and endpoints for us. These resources should always be in the default domain and deployments should manage domain specific configuration themselves using the provider resources. This class uses the default values from the keystone-manage bootstrap command. In the past puppet-keystone has always created a openstack project that is assumed as a admin project even though the bootstrap command creates the admin project. Since this uses the default values from the bootstrap command we should move away from having an openstack project, if we need that in testing it should be created there and not in the default deployment. Depends-On: https://review.opendev.org/#/c/698528/ Change-Id: I683fcdd743bddf6d4e989dd7e7c553db745934db
31 lines
1.1 KiB
Puppet
31 lines
1.1 KiB
Puppet
Exec { logoutput => 'on_failure' }
|
|
|
|
class { 'mysql::server': }
|
|
class { 'keystone::db::mysql':
|
|
password => 'keystone',
|
|
}
|
|
class { 'keystone':
|
|
debug => true,
|
|
database_connection => 'mysql://keystone:keystone@192.168.1.1/keystone',
|
|
enabled => true,
|
|
# The domain configuration setup at keystone level
|
|
using_domain_config => true,
|
|
}
|
|
class { 'keystone::bootstrap':
|
|
password => 'a_big_secret',
|
|
public_url => 'http://192.168.1.1:5000',
|
|
admin_url => 'http://192.168.1.1:5000',
|
|
}
|
|
|
|
# Creates the /etc/keystone/domains/keystone.my_domain.conf file and
|
|
# notifies keystone service
|
|
keystone_domain_config {
|
|
'my_domain::ldap/url': value => 'ldap://ldapservice.my_org.com';
|
|
'my_domain::ldap/user': value => 'cn=Manager,dc=openstack,dc=org';
|
|
'my_domain::ldap/password': value => 'mysecret';
|
|
'my_domain::ldap/suffix': value => 'dc=openstack,dc=org';
|
|
'my_domain::ldap/group_tree_dn': value => 'ou=UserGroups,dc=openstack,dc=org';
|
|
'my_domain::ldap/user_tree_dn': value => 'ou=Users,dc=openstack,dc=org';
|
|
'my_domain::ldap/user_mail_attribute': value => 'mail';
|
|
}
|