-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Fix default deployment of freezer, use mariadb."
- Loading branch information
Showing
7 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
- name: Creating Freezer database | ||
kolla_toolbox: | ||
module_name: mysql_db | ||
module_args: | ||
login_host: "{{ database_address }}" | ||
login_port: "{{ database_port }}" | ||
login_user: "{{ database_user }}" | ||
login_password: "{{ database_password }}" | ||
name: "{{ freezer_database_name }}" | ||
become: true | ||
register: database | ||
run_once: True | ||
delegate_to: "{{ groups['freezer-api'][0] }}" | ||
when: | ||
- not use_preconfigured_databases | bool | ||
|
||
- name: Creating Freezer database user and setting permissions | ||
kolla_toolbox: | ||
module_name: mysql_user | ||
module_args: | ||
login_host: "{{ database_address }}" | ||
login_port: "{{ database_port }}" | ||
login_user: "{{ database_user }}" | ||
login_password: "{{ database_password }}" | ||
name: "{{ freezer_database_user }}" | ||
password: "{{ freezer_database_password }}" | ||
host: "%" | ||
priv: "{{ freezer_database_name }}.*:ALL" | ||
append_privs: "yes" | ||
become: true | ||
run_once: True | ||
delegate_to: "{{ groups['freezer-api'][0] }}" | ||
when: | ||
- not use_preconfigured_databases | bool | ||
|
||
- include_tasks: bootstrap_service.yml | ||
when: database.changed or use_preconfigured_databases | bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Freezer now use MariaDB as default backend for database. | ||
Elasticsearch remains as an optional backend due to the requirement of | ||
Freezer to use Elasticsearch version 2.3.0. Elasticsearch in kolla-ansible | ||
is 5.6.x and that doesn't work with Freezer. | ||
New variables have been added:: ``freezer_database_backend``, | ||
``freezer_database_name``, ``freezer_database_user``, | ||
``freezer_database_address``, ``freezer_elasticsearch_replicas``, | ||
``freezer_es_protocol``, ``freezer_es_address``, ``freezer_es_port`` |