Set OS_ENDPOINT_TYPE in keystone openrc vars

sometimes it is needed to use other than `openstack` CLI clients
or older versions of those in bootstrap/other scripts that do not
understand the OS_INTERFACE env var, and instead use the
OS_ENDPOINT_TYPE var (and --os-endpoint-type CLI arg) for the same
purpose.

Example is `neutron` command from python-neutronclient package.

Change-Id: I0fb7d1e9612391e8632d775b91848d3c834b9bd2
This commit is contained in:
Pavlo Shchelokovskyy 2020-05-27 14:00:08 +03:00
parent 0c5b037c00
commit 5dc986aa5f

View File

@ -40,6 +40,11 @@ return: |
secretKeyRef:
name: example-keystone-admin
key: OS_INTERFACE
- name: OS_ENDPOINT_TYPE
valueFrom:
secretKeyRef:
name: example-keystone-admin
key: OS_INTERFACE
- name: OS_PROJECT_DOMAIN_NAME
valueFrom:
secretKeyRef:
@ -86,6 +91,11 @@ return: |
secretKeyRef:
name: {{ $ksUserSecret }}
key: OS_INTERFACE
- name: OS_ENDPOINT_TYPE
valueFrom:
secretKeyRef:
name: {{ $ksUserSecret }}
key: OS_INTERFACE
- name: OS_PROJECT_DOMAIN_NAME
valueFrom:
secretKeyRef: