-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add _9999-custom-settings.py file (#657)
Required by OpenStack Kolla >= 2024.1 Related to osism/issues#1073 Signed-off-by: Christian Berendt <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) | ||
''' |
44 changes: 44 additions & 0 deletions
44
...ecutter.project_name}}/environments/kolla/files/overlays/horizon/_9999-custom-settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
2 changes: 2 additions & 0 deletions
2
...okiecutter.project_name}}/environments/kolla/files/overlays/horizon/custom_local_settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters