Adjust to per-service configuration
Change-Id: I78b730ad4c9c726c37b642886104b5c502c10a9c Depends-On: Ia4d29167cea6dfd19a1970706aafda51a31d5b24
This commit is contained in:
parent
0b76bf68dc
commit
aa0d144267
|
@ -16,7 +16,7 @@ host_ip = {{ network_topology["private"]["address"] }}
|
||||||
port = {{ ironic.api_port.cont }}
|
port = {{ ironic.api_port.cont }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = mysql+pymysql://{{ ironic.db.username }}:{{ ironic.db.password }}@{{ address(service.database) }}/{{ ironic.db.name }}{% if db.tls.enabled %}?ssl_ca=/opt/ccp/etc/tls/ca.pem{% endif %}
|
connection = mysql+pymysql://{{ ironic.db.username }}:{{ ironic.db.password }}@{{ address("database") }}/{{ ironic.db.name }}{% if db.tls.enabled %}?ssl_ca=/opt/ccp/etc/tls/ca.pem{% endif %}
|
||||||
max_retries = -1
|
max_retries = -1
|
||||||
|
|
||||||
{{ keystone_authtoken.keystone_authtoken(ironic.username, ironic.password) }}
|
{{ keystone_authtoken.keystone_authtoken(ironic.username, ironic.password) }}
|
||||||
|
|
|
@ -15,13 +15,13 @@ service:
|
||||||
pre:
|
pre:
|
||||||
- name: ironic-db-create
|
- name: ironic-db-create
|
||||||
type: single
|
type: single
|
||||||
command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e "create database `{{ ironic.db.name }}`;
|
command: mysql -v -u root -p{{ db.root_password }} -h {{ address("database") }} -e "create database `{{ ironic.db.name }}`;
|
||||||
create user '{{ ironic.db.username }}'@'%' identified by '{{ ironic.db.password }}'
|
create user '{{ ironic.db.username }}'@'%' identified by '{{ ironic.db.password }}'
|
||||||
{% if db.tls.enabled %} require ssl {% endif %};
|
{% if db.tls.enabled %} require ssl {% endif %};
|
||||||
grant all privileges on `{{ ironic.db.name }}`.* to '{{ ironic.db.username }}'@'%' identified by '{{ ironic.db.password }}'
|
grant all privileges on `{{ ironic.db.name }}`.* to '{{ ironic.db.username }}'@'%' identified by '{{ ironic.db.password }}'
|
||||||
{% if db.tls.enabled %} require ssl {% endif %};"
|
{% if db.tls.enabled %} require ssl {% endif %};"
|
||||||
dependencies:
|
dependencies:
|
||||||
- {{ service.database }}
|
- database
|
||||||
- name: ironic-db-sync
|
- name: ironic-db-sync
|
||||||
type: single
|
type: single
|
||||||
command: ironic-dbsync
|
command: ironic-dbsync
|
||||||
|
@ -68,7 +68,7 @@ service:
|
||||||
files:
|
files:
|
||||||
- ironic.conf
|
- ironic.conf
|
||||||
dependencies:
|
dependencies:
|
||||||
- "{{ messaging.dependencies[messaging.backend.rpc] }}"
|
- rpc
|
||||||
files:
|
files:
|
||||||
ironic.conf:
|
ironic.conf:
|
||||||
path: /etc/ironic/ironic.conf
|
path: /etc/ironic/ironic.conf
|
||||||
|
|
Loading…
Reference in New Issue