diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml index 32a2545..dbfb2bc 100644 --- a/service/files/defaults.yaml +++ b/service/files/defaults.yaml @@ -21,6 +21,11 @@ configs: fernet_key: "ZAabsQIXsSW7Ez52UZRqUXDz87y9+R+mbxVZ38gRmjg=" credential_key: "2jjLrgOLvI-wj7g-8058SSCw0-ZnL4Ghg5cLuBirxL8=" + notifications: + enable: false + # format can be basic or cadf: + format: cadf + openstack: user_password: password user_name: admin diff --git a/service/files/keystone.conf.j2 b/service/files/keystone.conf.j2 index b51eb84..5104bc5 100644 --- a/service/files/keystone.conf.j2 +++ b/service/files/keystone.conf.j2 @@ -3,6 +3,9 @@ debug = {{ keystone.debug }} use_syslog = False use_stderr = True max_token_size = 255 +{% if keystone.notifications.enable %} +notification_format = {{ keystone.notifications.format }} +{% endif %} [database] connection = mysql+pymysql://{{ keystone.db.username }}:{{ keystone.db.password }}@{{ address(service.database) }}/{{ keystone.db.name }} @@ -22,3 +25,10 @@ provider = fernet [assignment] driver = sql + +{% if keystone.notifications.enable %} +{# This section should be updated after https://review.openstack.org/#/c/419995/ is merged #} +[oslo_messaging_notifications] +driver = messagingv2 +transport_url = rabbit://{{ rabbitmq.user }}:{{ rabbitmq.password }}@{{ address('rabbitmq', rabbitmq.port) }} +{% endif %}