Skip to content

Commit

Permalink
Add _9999-custom-settings.py file (#657)
Browse files Browse the repository at this point in the history
Required by OpenStack Kolla >= 2024.1

Related to osism/issues#1073

Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jul 22, 2024
1 parent 1755b18 commit 96affdc
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
max-line-length = 200
exclude = {{cookiecutter.project_name}}/environments/kolla/files/overlays/horizon/_9999-custom-settings.py
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tool.black]
extend-exclude = '''
/(
{{cookiecutter.project_name}}/environments/kolla/files/overlays/horizon/_9999-custom-settings.py
)
'''
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This file is required as of OpenStack Kolla 2024.1.

# customer specific configuration

from django.utils.translation import ugettext_lazy as _

# SESSION_TIMEOUT = 7200
# OPENSTACK_ENABLE_PASSWORD_RETRIEVE = True

SHOW_KEYSTONE_V2_RC = False
USER_MENU_LINKS = [
{
"name": _("OpenStack clouds.yml File"),
"icon_classes": [
"fa-download",
],
"url": "horizon:project:api_access:clouds.yaml",
"external": False,
},
{
"name": _("OpenStack RC File v3"),
"icon_classes": [
"fa-download",
],
"url": "horizon:project:api_access:openrc",
"external": False,
},
]

{%- if cookiecutter.with_keycloak|int %}
LOGOUT_URL = "https://keycloak.testbed.osism.xyz/auth/realms/osism/protocol/openid-connect/logout/?client_id=keystone&post_logout_redirect_uri=https%3A%2F%2Fapi.testbed.osism.xyz%3A5000%2Fredirect_uri%3Flogout%3Dhttps%3A%2F%2Fapi.testbed.osism.xyz%3A5000%2Flogout"

WEBSSO_ENABLED = False

WEBSSO_KEYSTONE_URL = "https://api.testbed.osism.xyz:5000/v3"
WEBSSO_CHOICES = (
("credentials", "Keystone Credentials"),
("keycloak", "Authenticate via Keycloak"),
)

WEBSSO_IDP_MAPPING = {
"keycloak": ("keycloak", "openid"),
}
{%- endif %}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is required up to OpenStack Kolla 2023.2.

# customer specific configuration

from django.utils.translation import ugettext_lazy as _
Expand Down

0 comments on commit 96affdc

Please sign in to comment.