Update master for stable/2026.1
Add file to the reno documentation build to show release notes for stable/2026.1.
Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/2026.1.
Sem-Ver: feature Change-Id: I3e7a2973df167485b46200f2f6895fb358b61d7d Signed-off-by: OpenStack Release Bot infra-root@openstack.org Generated-By: openstack/project-config:roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Team and repository tags
keystone
Table of Contents
Overview
The keystone module is a part of OpenStack, an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects as part of the core software. The module itself is used to flexibly configure and manage the identity service for OpenStack.
Module Description
The keystone module is a thorough attempt to make Puppet capable of managing the entirety of keystone. This includes manifests to provision region specific endpoint and database connections. Types are shipped as part of the keystone module to assist in manipulation of configuration files.
This module is tested in combination with other modules needed to build and leverage an entire OpenStack software stack.
Setup
What the keystone module affects
Installing keystone
Beginning with keystone
To utilize the keystone module’s functionality you will need to declare multiple resources. This is not an exhaustive list of all the components needed, we recommend you consult and understand the core openstack documentation.
Define a keystone node
Leveraging the Native Types
Keystone ships with a collection of native types that can be used to interact with the data stored in keystone. The following, related to user management could live throughout your Puppet code base. They even support puppet’s ability to introspect the current environment much the same as
puppet resource user,puppet resource keystone_tenantwill print out all the currently stored tenants and their parameters.These two will seldom be used outside openstack related classes, like nova or cinder. These are modified examples from Class[‘nova::keystone::auth’].
Services can also be written with the type as a suffix:
Endpoints can also be written with the type as a suffix:
Defining an endpoint without the type is supported in Liberty release for backward compatibility, but will be dropped in Mitaka, as this can lead to corruption of the endpoint database if omitted. See this bug
Setting up a database for keystone
A keystone database can be configured separately from the keystone services.
If one needs to actually install a fresh database they have the choice of mysql or postgres. Use the mysql::server or postgreql::server classes to do this setup, and then the Class[‘keystone::db::mysql’] or Class[‘keystone::db::postgresql’] for adding the databases and users that will be needed by keystone.
About Keystone V3 syntax in keystone_user/keystone_tenant/keystone_user_role
A complete description of the syntax available for those resources are in
examples/user_project_user_role_composite_namevar.ppAbout Keystone V3 and default domain
For users
With Keystone V3, domains made their appearance. For backward compatibility a default domain is defined in the
keystone.conffile. All the V2 resources are then assigned to this default domain. The default domain id is by defaultdefaultassociated with the nameDefault.What it means is that this user:
will be assigned to the
Defaultdomain.The same is true for
keystone_tenantandkeystone_user_role:will be assigned to the
Defaultdomain.Now, you can change the default domain if you want. But then the puppet resource you defined will have to be fully qualified.
So, for instance, if you change the default domain to be
my_new_default, then you’ll have to do:as the module will always assign a resource without domain to the
Defaultdomain.A deprecation warning will be visible in the log when you have changed the default domain id and used an non fully qualified name for your resource.
In Mitaka, a deprecation warning will be displayed any time you use a non fully qualified resource.
After Mitaka all the resources will have to be fully qualified.
For developers
Other modules can try to find user/tenant resources using Puppet’s indirection. The rule for the name of the resources are:
This is for backward compatibility.
Note that, as stated above, the ‘Default’ domain is hardcoded. It is not related to the real default domain which can be set to something else. But then again, you will have to set the fully qualified name.
You can check
spec/acceptance/default_domain_spec.rbto see an example of the behavior described here.Implementation
keystone
keystone is a combination of Puppet manifest and ruby code to delivery configuration and extra functionality through types and providers.
Types
keystone_config
The
keystone_configprovider is a children of the ini_setting provider. It allows one to write an entry in the/etc/keystone/keystone.conffile.This will write
expiration=3600in the[token]section.name
Section/setting name to manage from
keystone.confvalue
The value of the setting to be defined.
secret
Whether to hide the value from Puppet logs. Defaults to
false.ensure_absent_val
If value is equal to ensure_absent_val then the resource will behave as if
ensure => absentwas specified. Defaults to<SERVICE DEFAULT>Limitations
Upgrade warning
Development
Developer documentation for the entire puppet-openstack project.
Contributors
Release Notes
Repository