Make resource universal
This commit is contained in:
parent
2d3e9b1a82
commit
62f45472a7
@ -1,9 +1,5 @@
|
|||||||
- hosts: [{{ ip }}]
|
- hosts: [{{ ip }}]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
vars:
|
|
||||||
ip: {{ip}}
|
|
||||||
port: {{port}}
|
|
||||||
admin_port: {{admin_port}}
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: keystone service and endpoint
|
- name: keystone service and endpoint
|
||||||
keystone_service:
|
keystone_service:
|
||||||
@ -16,4 +12,4 @@
|
|||||||
adminurl: {{adminurl}}
|
adminurl: {{adminurl}}
|
||||||
region: "RegionOne"
|
region: "RegionOne"
|
||||||
state: present
|
state: present
|
||||||
endpoint: http://{{keystone_host}}:{{keystone_port}}/v2.0/
|
endpoint: http://{{keystone_host}}:{{keystone_admin_port}}/v2.0/
|
||||||
|
@ -5,36 +5,39 @@ input:
|
|||||||
keystone_host:
|
keystone_host:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
keystone_port:
|
keystone_admin_port:
|
||||||
schema: int!
|
schema: int!
|
||||||
value:
|
value:
|
||||||
admin_token:
|
admin_token:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
port:
|
|
||||||
schema: int!
|
|
||||||
value:
|
|
||||||
admin_port:
|
|
||||||
schema: int!
|
|
||||||
value:
|
|
||||||
type:
|
type:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: identity
|
|
||||||
description:
|
description:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: OpenStack Identity Service
|
name:
|
||||||
|
schema: str!
|
||||||
|
public_ip:
|
||||||
|
schema: str!
|
||||||
|
public_port:
|
||||||
|
schema: int!
|
||||||
publicurl:
|
publicurl:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: http://{{ip}}:{{port}}/v2.0
|
value: http://{{public_ip}}:{{public_port}}/v2.0
|
||||||
|
internal_ip:
|
||||||
|
schema: str!
|
||||||
|
internal_port:
|
||||||
|
schema: int!
|
||||||
internalurl:
|
internalurl:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: http://{{ip}}:{{port}}/v2.0
|
value: http://{{ip}}:{{port}}/v2.0
|
||||||
|
admin_ip:
|
||||||
|
schema: str!
|
||||||
|
admin_port:
|
||||||
|
schema: int!
|
||||||
adminurl:
|
adminurl:
|
||||||
schema: str!
|
schema: str!
|
||||||
value: http://{{ip}}:{{admin_port}}/v2.0
|
value: http://{{ip}}:{{admin_port}}/v2.0
|
||||||
adminurl:
|
|
||||||
schema: str!
|
|
||||||
value:
|
|
||||||
ip:
|
ip:
|
||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
|
@ -5,7 +5,7 @@ resources:
|
|||||||
from: resources/keystone_tenant
|
from: resources/keystone_tenant
|
||||||
values:
|
values:
|
||||||
tenant_name: admin
|
tenant_name: admin
|
||||||
keystone_port: '{{keystone_port}}'
|
keystone_port: '{{keystone_admin_port}}'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '{{keystone_ip}}'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '{{admin_token}}'
|
||||||
ip: '{{ip}}'
|
ip: '{{ip}}'
|
||||||
@ -18,7 +18,7 @@ resources:
|
|||||||
user_name: 'admin'
|
user_name: 'admin'
|
||||||
user_password: 'admin'
|
user_password: 'admin'
|
||||||
tenant_name: 'admin_tenant::tenant_name'
|
tenant_name: 'admin_tenant::tenant_name'
|
||||||
keystone_port: '{{keystone_port}}'
|
keystone_port: '{{keystone_admin_port}}'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '{{keystone_ip}}'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '{{admin_token}}'
|
||||||
ip: '{{ip}}'
|
ip: '{{ip}}'
|
||||||
@ -29,15 +29,20 @@ resources:
|
|||||||
from: resources/keystone_service_endpoint
|
from: resources/keystone_service_endpoint
|
||||||
values:
|
values:
|
||||||
{% raw %}
|
{% raw %}
|
||||||
adminurl: 'http://{{keystone_ip}}:{{admin_port}}/v2.0'
|
adminurl: 'http://{{admin_ip}}:{{admin_port}}/v2.0'
|
||||||
internalurl: 'http://{{keystone_ip}}:{{port}}/v2.0'
|
internalurl: 'http://{{internal_ip}}:{{internal_port}}/v2.0'
|
||||||
publicurl: 'http://{{keystone_ip}}:{{port}}/v2.0'
|
publicurl: 'http://{{public_ip}}:{{public_port}}/v2.0'
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
description: 'OpenStack Identity Service'
|
description: 'OpenStack Identity Service'
|
||||||
type: 'identity'
|
type: 'identity'
|
||||||
admin_port: '{{keystone_port}}'
|
name: 'keystone'
|
||||||
port: '{{keystone_admin_port}}'
|
admin_port: '{{keystone_admin_port}}'
|
||||||
keystone_port: '{{keystone_port}}'
|
public_port: '{{keystone_port}}'
|
||||||
|
internal_port: '{{keystone_port}}'
|
||||||
|
admin_ip: '{{ip}}'
|
||||||
|
public_ip: '{{ip}}'
|
||||||
|
internal_ip: '{{ip}}'
|
||||||
|
keystone_admin_port: '{{keystone_admin_port}}'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '{{keystone_ip}}'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '{{admin_token}}'
|
||||||
ip: '{{ip}}'
|
ip: '{{ip}}'
|
||||||
@ -48,7 +53,7 @@ resources:
|
|||||||
from: resources/keystone_tenant
|
from: resources/keystone_tenant
|
||||||
values:
|
values:
|
||||||
tenant_name: services
|
tenant_name: services
|
||||||
keystone_port: '{{keystone_port}}'
|
keystone_port: '{{keystone_admin_port}}'
|
||||||
keystone_host: '{{keystone_ip}}'
|
keystone_host: '{{keystone_ip}}'
|
||||||
admin_token: '{{admin_token}}'
|
admin_token: '{{admin_token}}'
|
||||||
ip: '{{ip}}'
|
ip: '{{ip}}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user