Add galera devel packages installation

There might be cases, where devel packages installation might be required
Since it's pretty specific usecases, we don't inlcude it into
tasks/main.yml and intend to use tasks_from during rule include.

Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-os_adjutant/+/777607
Change-Id: I79be2197aa1859ece853a197ec685e4bc460c133
This commit is contained in:
Dmitriy Rabotyagov 2021-05-05 14:21:50 +03:00
parent 99a5559f60
commit f6bd5c9e53
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,20 @@
---
# Copyright 2021, City Network International AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Prepare the package list
set_fact:
galera_packages_list: "{{ galera_devel_distro_packages }}"
- include_tasks: "galera_install_{{ ansible_facts['pkg_mgr'] }}.yml"

View File

@ -85,4 +85,7 @@ galera_wsrep_provider: "/usr/lib/galera/libgalera_smm.so"
galera_client_distro_packages:
- "mariadb-client-{{ galera_major_version }}"
galera_devel_distro_packages:
- libmariadb-dev
galera_unix_socket: "/var/run/mysqld/mysqld.sock"

View File

@ -72,4 +72,7 @@ galera_wsrep_provider: "/usr/lib64/galera-4/libgalera_smm.so"
galera_client_distro_packages:
- MariaDB-client
galera_devel_distro_packages:
- MariaDB-devel
galera_unix_socket: "/var/lib/mysql/mysql.sock"