https://github.com/openstack/charm-interface-keystone-domain-backend
Charm Interface - Keystone Domain backend. Mirror of code maintained at opendev.org.
https://github.com/openstack/charm-interface-keystone-domain-backend
Last synced: 10 months ago
JSON representation
Charm Interface - Keystone Domain backend. Mirror of code maintained at opendev.org.
- Host: GitHub
- URL: https://github.com/openstack/charm-interface-keystone-domain-backend
- Owner: openstack
- License: apache-2.0
- Created: 2017-02-12T19:07:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T22:30:29.000Z (over 5 years ago)
- Last Synced: 2025-09-03T13:32:00.402Z (10 months ago)
- Language: Python
- Homepage: https://opendev.org/openstack/charm-interface-keystone-domain-backend
- Size: 10.7 KB
- Stars: 6
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overview
This interface layer handles the communication with Keystone via the
'keystone-domain-backend' interface protocol.
# Usage
## Provides
The interface layer will set the following state:
* `{relation_name}.connected` The relation is established.
For example:
```python
from charms.reactive import when
@when('domain-backend.connected')
@when('configuration.complete')
def configure_domain(domain):
domain.domain_name('mynewkeystonedomain')
domain.trigger_restart()
```
Typically a domain backend charm should validate that it
has sufficient and good configuration for the domain backend,
write its configuration to
`/etc/keystone/domains/keystone..conf` and then
trigger a restart of keystone using the `trigger_restart`
method of the inteface, supplying the domain name at this
point in time as well.
The keystone charm will create the domain in the keystone
database, mapping to the underlying domain configuration
on disk.