Glance registry finally working
This commit is contained in:
parent
0937ad6840
commit
abcd27d065
@ -7,6 +7,7 @@
|
|||||||
keystone_port: {{ keystone_port }}
|
keystone_port: {{ keystone_port }}
|
||||||
keystone_admin_user: {{ keystone_admin_user }}
|
keystone_admin_user: {{ keystone_admin_user }}
|
||||||
keystone_admin_password: {{ keystone_admin_password }}
|
keystone_admin_password: {{ keystone_admin_password }}
|
||||||
|
keystone_admin_port: {{ keystone_admin_port }}
|
||||||
keystone_admin_tenant: {{ keystone_admin_tenant }}
|
keystone_admin_tenant: {{ keystone_admin_tenant }}
|
||||||
mysql_ip: {{ mysql_ip }}
|
mysql_ip: {{ mysql_ip }}
|
||||||
mysql_db: {{ mysql_db }}
|
mysql_db: {{ mysql_db }}
|
||||||
|
@ -33,6 +33,9 @@ input:
|
|||||||
keystone_admin_password:
|
keystone_admin_password:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: password1234
|
value: password1234
|
||||||
|
keystone_admin_port:
|
||||||
|
schema: int!
|
||||||
|
value:
|
||||||
keystone_admin_tenant:
|
keystone_admin_tenant:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: service_admins
|
value: service_admins
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export OS_TENANT_NAME={{ keystone_admin_tenant }}
|
export OS_TENANT_NAME={{ keystone_admin_tenant }}
|
||||||
export OS_USERNAME={{ keystone_admin_user }}
|
export OS_USERNAME={{ keystone_admin_user }}
|
||||||
export OS_PASSWORD={{ keystone_admin_password }}
|
export OS_PASSWORD={{ keystone_admin_password }}
|
||||||
export OS_AUTH_URL=http://{{ keystone_ip }}:35357/v2.0
|
export OS_AUTH_URL=http://{{ keystone_ip }}:{{ keystone_admin_port }}/v2.0
|
@ -67,7 +67,7 @@ paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddl
|
|||||||
|
|
||||||
[filter:authtoken]
|
[filter:authtoken]
|
||||||
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
||||||
identity_uri = http://{{ keystone_ip }}:35357
|
identity_uri = http://{{ keystone_ip }}:{{ keystone_admin_port }}
|
||||||
admin_user = {{ keystone_admin_user }}
|
admin_user = {{ keystone_admin_user }}
|
||||||
admin_tenant_name = {{ keystone_admin_tenant }}
|
admin_tenant_name = {{ keystone_admin_tenant }}
|
||||||
admin_password = {{ keystone_admin_password }}
|
admin_password = {{ keystone_admin_password }}
|
||||||
|
@ -15,11 +15,11 @@ image_cache_dir = /var/lib/glance/image-cache/
|
|||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_ip }}/{{ mysql_db }}
|
connection = mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_ip }}/{{ mysql_db }}
|
||||||
backend = sqlalchemy
|
backend = mysql
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
auth_uri = http://{{ keystone_ip }}:{{ keystone_port }}/v2.0
|
auth_uri = http://{{ keystone_ip }}:{{ keystone_port }}/v2.0
|
||||||
identity_uri = http://{{ keystone_ip }}:35357
|
identity_uri = http://{{ keystone_ip }}:{{ keystone_admin_port }}
|
||||||
admin_tenant_name = {{ keystone_admin_tenant }}
|
admin_tenant_name = {{ keystone_admin_tenant }}
|
||||||
admin_user = {{ keystone_admin_user }}
|
admin_user = {{ keystone_admin_user }}
|
||||||
admin_password = {{ keystone_admin_password }}
|
admin_password = {{ keystone_admin_password }}
|
||||||
|
@ -24,7 +24,7 @@ paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddl
|
|||||||
|
|
||||||
[filter:authtoken]
|
[filter:authtoken]
|
||||||
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
||||||
identity_uri = http://{{ keystone_ip }}:35357
|
identity_uri = http://{{ keystone_ip }}:{{ keystone_admin_port }}
|
||||||
admin_user = {{ keystone_admin_user }}
|
admin_user = {{ keystone_admin_user }}
|
||||||
admin_tenant_name = {{ keystone_admin_tenant }}
|
admin_tenant_name = {{ keystone_admin_tenant }}
|
||||||
admin_password = {{ keystone_admin_password }}
|
admin_password = {{ keystone_admin_password }}
|
||||||
|
@ -7,12 +7,12 @@ api_limit_max = 1000
|
|||||||
limit_param_default = 25
|
limit_param_default = 25
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
backend = sqlalchemy
|
backend = mysql
|
||||||
connection = mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_ip }}/{{ mysql_db }}
|
connection = mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_ip }}/{{ mysql_db }}
|
||||||
|
|
||||||
[keystone_authtoken]
|
[keystone_authtoken]
|
||||||
auth_uri = http://{{ keystone_ip }}:{{ keystone_port }}/v2.0
|
auth_uri = http://{{ keystone_ip }}:{{ keystone_port }}/v2.0
|
||||||
identity_uri = http://{{ keystone_ip }}:35357
|
identity_uri = http://{{ keystone_ip }}:{{ keystone_admin_port }}
|
||||||
admin_tenant_name = {{ keystone_admin_tenant }}
|
admin_tenant_name = {{ keystone_admin_tenant }}
|
||||||
admin_user = {{ keystone_admin_user }}
|
admin_user = {{ keystone_admin_user }}
|
||||||
admin_password = {{ keystone_admin_password }}
|
admin_password = {{ keystone_admin_password }}
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
- docker:
|
- docker:
|
||||||
command: /bin/bash -c "glance-manage db_sync && /usr/bin/keystone-registry"
|
#command: /bin/bash -c "glance-manage db_sync && /usr/bin/glance-registry"
|
||||||
|
command: /usr/bin/glance-registry
|
||||||
name: {{ name }}
|
name: {{ name }}
|
||||||
image: {{ image }}
|
image: {{ image }}
|
||||||
state: running
|
state: running
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
- hosts: [{{ ip }}]
|
- hosts: [{{ ip }}]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: install python-keystoneclient
|
||||||
|
shell: pip install python-keystoneclient
|
||||||
- name: keystone role
|
- name: keystone role
|
||||||
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} user={{user_name}} tenant={{tenant_name}} role={{role_name}} state=present
|
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} user={{user_name}} tenant={{tenant_name}} role={{role_name}} state=present
|
||||||
|
@ -1 +1,5 @@
|
|||||||
#todo
|
#todo
|
||||||
|
- hosts: [{{ ip }}]
|
||||||
|
sudo: yes
|
||||||
|
tasks:
|
||||||
|
- shell: echo 1
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
- hosts: [{{ ip }}]
|
- hosts: [{{ ip }}]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: install python-keystoneclient
|
||||||
|
shell: pip install python-keystoneclient
|
||||||
- name: keystone tenant
|
- name: keystone tenant
|
||||||
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} tenant={{tenant_name}} state=present
|
keystone_user: endpoint=http://{{keystone_host}}:{{keystone_port}}/v2.0/ token={{admin_token}} tenant={{tenant_name}} state=present
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: install python-keystoneclient
|
- name: install python-keystoneclient
|
||||||
shell: pip install python-keystoneclient
|
shell: pip install python-keystoneclient
|
||||||
|
- name: keystone user
|
||||||
keystone_user: endpoint=http://{{ keystone_host }}:{{ keystone_port }}/v2.0/ token={{ admin_token }} user={{ user_name }} password={{ user_password }} tenant={{ tenant_name }} state=present
|
keystone_user: endpoint=http://{{ keystone_host }}:{{ keystone_port }}/v2.0/ token={{ admin_token }} user={{ user_name }} password={{ user_password }} tenant={{ tenant_name }} state=present
|
||||||
|
@ -5,15 +5,12 @@ input:
|
|||||||
keystone_host:
|
keystone_host:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
keystone_admin_port:
|
keystone_port:
|
||||||
schema: int!
|
schema: int!
|
||||||
value:
|
value:
|
||||||
admin_token:
|
admin_token:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
role_name:
|
|
||||||
schema: str!
|
|
||||||
value:
|
|
||||||
user_name:
|
user_name:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
|
Loading…
Reference in New Issue
Block a user