Move Glance to endpoint type lookups
This commit is contained in:
parent
5e692febcc
commit
acc243a768
@ -21,7 +21,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=glance \
|
|||||||
service_type=image \
|
service_type=image \
|
||||||
description='Openstack Image' \
|
description='Openstack Image' \
|
||||||
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
||||||
url='{{ include "helm-toolkit.endpoint_glance_api_internal" . }}' \
|
url='{{ tuple "image" "admin" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
|
||||||
interface=admin \
|
interface=admin \
|
||||||
region_name='{{ .Values.keystone.admin_region_name }}' \
|
region_name='{{ .Values.keystone.admin_region_name }}' \
|
||||||
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
||||||
@ -31,7 +31,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=glance \
|
|||||||
service_type=image \
|
service_type=image \
|
||||||
description='Openstack Image' \
|
description='Openstack Image' \
|
||||||
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
||||||
url='{{ include "helm-toolkit.endpoint_glance_api_internal" . }}' \
|
url='{{ tuple "image" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
|
||||||
interface=internal \
|
interface=internal \
|
||||||
region_name='{{ .Values.keystone.admin_region_name }}' \
|
region_name='{{ .Values.keystone.admin_region_name }}' \
|
||||||
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
||||||
@ -41,7 +41,7 @@ ansible localhost -vvv -m kolla_keystone_service -a "service_name=glance \
|
|||||||
service_type=image \
|
service_type=image \
|
||||||
description='Openstack Image' \
|
description='Openstack Image' \
|
||||||
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
endpoint_region='{{ .Values.keystone.glance_region_name }}' \
|
||||||
url='{{ include "helm-toolkit.endpoint_glance_api_internal" . }}' \
|
url='{{ tuple "image" "public" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}' \
|
||||||
interface=public \
|
interface=public \
|
||||||
region_name='{{ .Values.keystone.admin_region_name }}' \
|
region_name='{{ .Values.keystone.admin_region_name }}' \
|
||||||
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
auth='{{ include "helm-toolkit.keystone_auth" . }}'" \
|
||||||
|
@ -22,27 +22,28 @@ workers = {{ .Values.misc.workers }}
|
|||||||
registry_host = glance-registry
|
registry_host = glance-registry
|
||||||
# Enable Copy-on-Write
|
# Enable Copy-on-Write
|
||||||
show_image_direct_url = True
|
show_image_direct_url = True
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = mysql+pymysql://{{ .Values.database.glance_user }}:{{ .Values.database.glance_password }}@{{ .Values.database.address }}/{{ .Values.database.glance_database_name }}
|
connection = mysql+pymysql://{{ .Values.database.glance_user }}:{{ .Values.database.glance_password }}@{{ .Values.database.address }}/{{ .Values.database.glance_database_name }}
|
||||||
max_retries = -1
|
max_retries = -1
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
auth_uri = {{ .Values.keystone.auth_uri }}
|
auth_version = v3
|
||||||
auth_url = {{ .Values.keystone.auth_url }}
|
auth_url = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}
|
||||||
auth_type = password
|
auth_type = password
|
||||||
project_domain_id = default
|
region_name = {{ .Values.keystone.glance_region_name }}
|
||||||
user_domain_id = default
|
project_domain_name = {{ .Values.keystone.glance_project_domain }}
|
||||||
project_name = service
|
project_name = {{ .Values.keystone.glance_project_name }}
|
||||||
|
user_domain_name = {{ .Values.keystone.glance_user_domain }}
|
||||||
username = {{ .Values.keystone.glance_user }}
|
username = {{ .Values.keystone.glance_user }}
|
||||||
password = {{ .Values.keystone.glance_password }}
|
password = {{ .Values.keystone.glance_password }}
|
||||||
|
|
||||||
[paste_deploy]
|
[paste_deploy]
|
||||||
flavor = keystone
|
flavor = keystone
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
driver = noop
|
driver = noop
|
||||||
|
|
||||||
[glance_store]
|
[glance_store]
|
||||||
filesystem_store_datadir = /var/lib/glance/images/
|
filesystem_store_datadir = /var/lib/glance/images/
|
||||||
{{- if .Values.development.enabled }}
|
{{- if .Values.development.enabled }}
|
||||||
|
@ -16,25 +16,27 @@
|
|||||||
debug = {{ .Values.misc.debug }}
|
debug = {{ .Values.misc.debug }}
|
||||||
use_syslog = False
|
use_syslog = False
|
||||||
use_stderr = True
|
use_stderr = True
|
||||||
|
|
||||||
bind_port = {{ .Values.network.port.registry }}
|
bind_port = {{ .Values.network.port.registry }}
|
||||||
workers = {{ .Values.misc.workers }}
|
workers = {{ .Values.misc.workers }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = mysql+pymysql://{{ .Values.database.glance_user }}:{{ .Values.database.glance_password }}@{{ .Values.database.address }}/{{ .Values.database.glance_database_name }}
|
connection = mysql+pymysql://{{ .Values.database.glance_user }}:{{ .Values.database.glance_password }}@{{ .Values.database.address }}/{{ .Values.database.glance_database_name }}
|
||||||
max_retries = -1
|
max_retries = -1
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
auth_uri = {{ .Values.keystone.auth_uri }}
|
auth_version = v3
|
||||||
auth_url = {{ .Values.keystone.auth_url }}
|
auth_url = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup" }}
|
||||||
auth_type = password
|
auth_type = password
|
||||||
project_domain_id = default
|
region_name = {{ .Values.keystone.glance_region_name }}
|
||||||
user_domain_id = default
|
project_domain_name = {{ .Values.keystone.glance_project_domain }}
|
||||||
project_name = service
|
project_name = {{ .Values.keystone.glance_project_name }}
|
||||||
|
user_domain_name = {{ .Values.keystone.glance_user_domain }}
|
||||||
username = {{ .Values.keystone.glance_user }}
|
username = {{ .Values.keystone.glance_user }}
|
||||||
password = {{ .Values.keystone.glance_password }}
|
password = {{ .Values.keystone.glance_password }}
|
||||||
|
|
||||||
[paste_deploy]
|
[paste_deploy]
|
||||||
flavor = keystone
|
flavor = keystone
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
driver = noop
|
driver = noop
|
||||||
|
@ -46,22 +46,25 @@ upgrades:
|
|||||||
max_surge: 3
|
max_surge: 3
|
||||||
|
|
||||||
keystone:
|
keystone:
|
||||||
auth_uri: "http://keystone-api:5000"
|
|
||||||
auth_url: "http://keystone-api:35357"
|
|
||||||
admin_user: "admin"
|
admin_user: "admin"
|
||||||
|
admin_user_domain: "default"
|
||||||
admin_password: "password"
|
admin_password: "password"
|
||||||
admin_project_name: "admin"
|
admin_project_name: "admin"
|
||||||
|
admin_project_domain: "default"
|
||||||
admin_region_name: "RegionOne"
|
admin_region_name: "RegionOne"
|
||||||
|
|
||||||
glance_user: "glance"
|
glance_user: "glance"
|
||||||
|
glance_user_domain: "default"
|
||||||
|
glance_user_role: "admin"
|
||||||
glance_password: "password"
|
glance_password: "password"
|
||||||
|
glance_project_name: "service"
|
||||||
|
glance_project_domain: "default"
|
||||||
glance_region_name: "RegionOne"
|
glance_region_name: "RegionOne"
|
||||||
|
|
||||||
network:
|
network:
|
||||||
port:
|
port:
|
||||||
api: 9292
|
api: 9292
|
||||||
registry: 9191
|
registry: 9191
|
||||||
ip_address: "0.0.0.0"
|
|
||||||
|
|
||||||
database:
|
database:
|
||||||
address: mariadb
|
address: mariadb
|
||||||
@ -173,21 +176,21 @@ dependencies:
|
|||||||
# values, but should include all endpoints
|
# values, but should include all endpoints
|
||||||
# required by this chart
|
# required by this chart
|
||||||
endpoints:
|
endpoints:
|
||||||
glance:
|
identity:
|
||||||
|
name: keystone
|
||||||
|
hosts:
|
||||||
|
default: keystone-api
|
||||||
|
path: /v3
|
||||||
|
scheme: 'http'
|
||||||
|
port:
|
||||||
|
admin: 35357
|
||||||
|
api: 5000
|
||||||
|
image:
|
||||||
|
name: glance
|
||||||
hosts:
|
hosts:
|
||||||
default: glance-api
|
default: glance-api
|
||||||
type: image
|
|
||||||
path: null
|
path: null
|
||||||
scheme: 'http'
|
scheme: 'http'
|
||||||
port:
|
port:
|
||||||
api: 9292
|
api: 9292
|
||||||
registry: 9191
|
registry: 9191
|
||||||
keystone:
|
|
||||||
hosts:
|
|
||||||
default: keystone-api
|
|
||||||
path: /v3
|
|
||||||
type: identity
|
|
||||||
scheme: 'http'
|
|
||||||
port:
|
|
||||||
admin: 35357
|
|
||||||
public: 5000
|
|
||||||
|
Loading…
Reference in New Issue
Block a user