Prevent conflicts between openrc files

When a system scoped openrc file is available, it is currently
necessary to clear your environment between using the two
differently scoped files.

These changes tidy up the environment so the files can be used
interchangeably.

Change-Id: I2d45dd3d58bfc1ad1cb365d2cd4b866d5d25f9e6
This commit is contained in:
Andrew Bonney 2024-07-03 08:56:16 +01:00
parent 8f528cc774
commit 3c232635fc
2 changed files with 8 additions and 0 deletions

@ -1,6 +1,11 @@
# {{ ansible_managed }}
export LC_ALL={{ openrc_locale }}
# Unset conflicting envs
unset OS_PROJECT_NAME
unset OS_TENANT_NAME
unset OS_PROJECT_DOMAIN_NAME
# COMMON CINDER ENVS
export CINDER_ENDPOINT_TYPE={{ openrc_cinder_endpoint_type }}

@ -1,6 +1,9 @@
# {{ ansible_managed }}
export LC_ALL={{ openrc_locale }}
# Unset conflicting envs
unset OS_SYSTEM_SCOPE
# COMMON CINDER ENVS
export CINDER_ENDPOINT_TYPE={{ openrc_cinder_endpoint_type }}