mirror of
https://github.com/clearlinux/clear-config-management.git
synced 2026-09-04 12:41:41 +00:00
Use keystone_fqdn for all endpoints.
There is the case when you specify the ip address or even 'localhost' in the hosts file but the endpoints should always point to the fqdn.
This commit is contained in:
@@ -5,7 +5,6 @@ database_root_password: secret
|
||||
|
||||
rabbitmq_password: secret
|
||||
|
||||
keystone_ssl: True
|
||||
keystone_fqdn: host.example.com
|
||||
keystone_root_domain: example.com
|
||||
keystone_p12password: secret
|
||||
|
||||
@@ -35,7 +35,9 @@ keystone_admin_port: 35357
|
||||
keystone_public_port: 5000
|
||||
|
||||
# Setup keystone with SSL
|
||||
keystone_ssl: false
|
||||
keystone_ssl: True
|
||||
keystone_fqdn: "{{ ansible_fqdn }}"
|
||||
keystone_root_domain: "example.com"
|
||||
|
||||
# Password for 'nova' user
|
||||
# nova_user_password: <password>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
password: "{{ glance_user_password }}"
|
||||
domain_name: "Default"
|
||||
email: "{{item.name}}@example.com"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { name: "glance", project: "admin" }
|
||||
@@ -40,7 +40,7 @@
|
||||
user_name: "{{item.user}}"
|
||||
project_name: "{{item.project}}"
|
||||
role_name: "{{item.role}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { user: "glance", project: "service", role: "admin"}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
service_name: "glance"
|
||||
service_type: "image"
|
||||
description: "Glance Image Service"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
- name: Create glance endpoints
|
||||
@@ -43,5 +43,5 @@
|
||||
interface: "internal"
|
||||
- url: "http://{{ groups['openstack_image'][0] }}:9292"
|
||||
interface: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
@@ -8,8 +8,8 @@ debug = True
|
||||
connection = mysql+pymysql://glance:{{ glance_database_password }}@{{ groups['dbservers'][0] }}/glance
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
|
||||
@@ -7,8 +7,8 @@ debug = True
|
||||
connection = mysql+pymysql://glance:{{ glance_database_password }}@{{ groups['dbservers'][0] }}/glance
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
command: "ensure_domain"
|
||||
domain_name: "{{ heat_domain }}"
|
||||
insecure: yes
|
||||
@@ -36,7 +36,7 @@
|
||||
password: "{{ item.password }}"
|
||||
domain_name: "{{ item.domain }}"
|
||||
email: "{{item.name}}@example.com"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- name: "heat"
|
||||
@@ -54,7 +54,7 @@
|
||||
keystone:
|
||||
command: "ensure_role"
|
||||
role_name: "{{item}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -73,7 +73,7 @@
|
||||
user_name: "{{ item.user }}"
|
||||
project_name: "{{ item.project }}"
|
||||
role_name: "{{ item.role }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { user: "heat", project: "service", role: "admin"}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
service_name: "{{ item.name }}"
|
||||
service_type: "{{ item.type }}"
|
||||
description: "{{ item.description }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { name: "heat", type: "orchestration", description: "OpenStack Orchestration" }
|
||||
@@ -46,7 +46,7 @@
|
||||
interface: "internal"
|
||||
- url: "{{ item.admin_url }}"
|
||||
interface: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- name: heat
|
||||
|
||||
@@ -18,8 +18,8 @@ rabbit_userid = {{ rabbitmq_username }}
|
||||
rabbit_password = {{ rabbitmq_password }}
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
@@ -31,8 +31,8 @@ insecure = True
|
||||
{% endif %}
|
||||
|
||||
[trustee]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
@@ -45,13 +45,13 @@ insecure = True
|
||||
{% endif %}
|
||||
|
||||
[clients_keystone]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
{% if keystone_ssl %}
|
||||
insecure = True
|
||||
{% endif %}
|
||||
|
||||
[ec2authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
{% if keystone_ssl %}
|
||||
insecure = True
|
||||
{% endif %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
OPENSTACK_HOST = "{{ groups['openstack_identity'][0] }}"
|
||||
OPENSTACK_HOST = "{{ keystone_fqdn }}"
|
||||
OPENSTACK_KEYSTONE_URL = "{{keystone_protocol}}://%s:{{keystone_public_port}}/v3" % OPENSTACK_HOST
|
||||
{% if keystone_ssl %}
|
||||
OPENSTACK_SSL_NO_VERIFY = True
|
||||
|
||||
@@ -9,6 +9,9 @@ All variables of this role are defined in `defaults/main.yml`
|
||||
|
||||
## Mandatory variables
|
||||
* `keystone_database_password`
|
||||
* `keystone_fqdn`
|
||||
* `keystone_root_domain`
|
||||
* `keystone_p12password`
|
||||
|
||||
## Handlers
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# keystone_database_password: <password>
|
||||
|
||||
# You can tune the following variables when keystone_ssl is set yo yes
|
||||
keystone_ssl: False
|
||||
keystone_ssl: True
|
||||
keystone_fqdn: "{{ ansible_fqdn }}"
|
||||
keystone_root_domain: "example.com"
|
||||
keystone_p12password: "secret"
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
--bootstrap-project-name admin
|
||||
--bootstrap-role-name admin
|
||||
--bootstrap-service-name keystone
|
||||
--bootstrap-admin-url "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
--bootstrap-public-url "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}/v3"
|
||||
--bootstrap-internal-url "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}/v3"
|
||||
--bootstrap-admin-url "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
--bootstrap-public-url "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}/v3"
|
||||
--bootstrap-internal-url "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}/v3"
|
||||
become: yes
|
||||
become_user: keystone
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
project_name: "{{ item.name }}"
|
||||
domain_name: Default
|
||||
description: "{{ item.desc }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -33,7 +33,7 @@
|
||||
project_name: "{{ item.project_name }}"
|
||||
domain_name: Default
|
||||
description: "{{ item.description | default('') }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -44,7 +44,7 @@
|
||||
keystone:
|
||||
command: "ensure_role"
|
||||
role_name: "user"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -54,7 +54,7 @@
|
||||
keystone:
|
||||
command: "ensure_role"
|
||||
role_name: "{{ item }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -69,7 +69,7 @@
|
||||
password: "{{ item.password }}"
|
||||
email: "{{ item.email | default('') }}"
|
||||
domain_name: "Default"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -83,7 +83,7 @@
|
||||
user_name: "{{ item.user_name }}"
|
||||
project_name: "{{ item.project_name }}"
|
||||
role_name: "{{ item.role_name }}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: "admin"
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
service_name: "keystone"
|
||||
service_type: "identity"
|
||||
description: "OpenStack Identity"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: admin
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -31,7 +31,7 @@
|
||||
service_name: "{{item.service_name}}"
|
||||
service_type: "{{item.service_type}}"
|
||||
description: "{{item.description | default('')}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: "admin"
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
@@ -45,13 +45,13 @@
|
||||
service_name: "keystone"
|
||||
service_type: "identity"
|
||||
endpoint_list:
|
||||
- url: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}/v3"
|
||||
- url: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}/v3"
|
||||
interface: "public"
|
||||
- url: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
- url: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
interface: "admin"
|
||||
- url: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}/v3"
|
||||
- url: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}/v3"
|
||||
interface: "internal"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
login_user: "admin"
|
||||
login_password: "{{ keystone_admin_password }}"
|
||||
login_project_name: "admin"
|
||||
|
||||
@@ -6,7 +6,7 @@ export OS_PROJECT_NAME=admin
|
||||
export OS_TENANT_NAME=admin
|
||||
export OS_USERNAME=admin
|
||||
export OS_PASSWORD={{ keystone_admin_password }}
|
||||
export OS_AUTH_URL={{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3
|
||||
export OS_AUTH_URL={{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3
|
||||
{% if keystone_ssl %}
|
||||
export OS_CACERT=$HOME/.pki/cacert.pem
|
||||
{% endif %}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
password: "{{ neutron_user_password }}"
|
||||
domain_name: "Default"
|
||||
email: "{{item.name}}@example.com"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { name: "neutron", project: "admin" }
|
||||
@@ -40,7 +40,7 @@
|
||||
user_name: "{{item.user}}"
|
||||
project_name: "{{item.project}}"
|
||||
role_name: "{{item.role}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { user: "neutron", project: "service", role: "admin"}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
service_name: "neutron"
|
||||
service_type: "network"
|
||||
description: "OpenStack Networking"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
- name: Create neutron endpoints
|
||||
@@ -43,5 +43,5 @@
|
||||
interface: "internal"
|
||||
- url: "http://{{ groups['openstack_networking'][0] }}:9696"
|
||||
interface: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[DEFAULT]
|
||||
auth_uri = "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}"
|
||||
auth_url = "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}"
|
||||
auth_uri = "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}"
|
||||
auth_url = "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}"
|
||||
auth_region = RegionOne
|
||||
auth_plugin = password
|
||||
project_domain_id = default
|
||||
|
||||
@@ -15,20 +15,20 @@ nova_url = http://{{ groups['openstack_compute_controller'][0] }}:8774/v2
|
||||
connection = mysql+pymysql://neutron:{{ neutron_database_password }}@{{ groups['dbservers'][0] }}/neutron
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
project_domain_id = default
|
||||
project_name = service
|
||||
user_domain_id = default
|
||||
password = {{ neutron_user_password }}
|
||||
username = neutron
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
{% if keystone_ssl %}
|
||||
insecure = True
|
||||
{% endif %}
|
||||
|
||||
[nova]
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
password: "{{ nova_user_password }}"
|
||||
domain_name: "Default"
|
||||
email: "{{item.name}}@example.com"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { name: "nova", project: "admin" }
|
||||
@@ -40,7 +40,7 @@
|
||||
user_name: "{{item.user}}"
|
||||
project_name: "{{item.project}}"
|
||||
role_name: "{{item.role}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { user: "nova", project: "service", role: "admin"}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
service_name: "nova"
|
||||
service_type: "compute"
|
||||
description: "Nova Compute Service"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
- name: Create nova endpoints
|
||||
@@ -43,5 +43,5 @@
|
||||
interface: "internal"
|
||||
- url: "http://{{ groups['openstack_compute_controller'][0] }}:8774/v2/%(tenant_id)s"
|
||||
interface: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
@@ -8,8 +8,8 @@ rabbit_userid = openstack
|
||||
rabbit_password = {{ rabbitmq_password }}
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
|
||||
@@ -23,8 +23,8 @@ rabbit_userid = {{ rabbitmq_username }}
|
||||
rabbit_password = {{ rabbitmq_password }}
|
||||
|
||||
[keystone_authtoken]
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
user_domain_id = default
|
||||
@@ -49,7 +49,7 @@ api_servers = http://{{ groups['openstack_image'][0] }}:9292
|
||||
|
||||
[neutron]
|
||||
url = http://{{ groups['openstack_networking'][0] }}:9696
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3
|
||||
auth_type = password
|
||||
auth_strategy = keystone
|
||||
project_domain_name = Default
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
password: "{{ swift_user_password }}"
|
||||
domain_name: "Default"
|
||||
email: "{{item.name}}@example.com"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { name: "swift", project: "admin" }
|
||||
@@ -40,7 +40,7 @@
|
||||
user_name: "{{item.user}}"
|
||||
project_name: "{{item.project}}"
|
||||
role_name: "{{item.role}}"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
with_items:
|
||||
- { user: "swift", project: "service", role: "admin"}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
service_name: "swift"
|
||||
service_type: "object-store"
|
||||
description: "Openstack Object Storage"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
- name: Create swift endpoints
|
||||
@@ -43,5 +43,5 @@
|
||||
interface: "internal"
|
||||
- url: "http://{{ groups['openstack_object_storage_controller'][0] }}:8080/v1"
|
||||
interface: "admin"
|
||||
endpoint: "{{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}/v3"
|
||||
endpoint: "{{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}/v3"
|
||||
insecure: yes
|
||||
|
||||
@@ -20,8 +20,8 @@ operator_roles = admin,user
|
||||
|
||||
[filter:authtoken]
|
||||
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
||||
auth_uri = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ groups['openstack_identity'][0] }}:{{keystone_admin_port}}
|
||||
auth_uri = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_public_port}}
|
||||
auth_url = {{keystone_protocol}}://{{ keystone_fqdn }}:{{keystone_admin_port}}
|
||||
memcached_servers = {{ groups['openstack_object_storage_controller'][0] }}:11211
|
||||
auth_type = password
|
||||
project_domain_id = default
|
||||
|
||||
Reference in New Issue
Block a user