diff --git a/tasks/galera_devel_main.yml b/tasks/galera_devel_main.yml new file mode 100644 index 00000000..6a870441 --- /dev/null +++ b/tasks/galera_devel_main.yml @@ -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" diff --git a/vars/debian.yml b/vars/debian.yml index 6cc364ba..19397f07 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -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" diff --git a/vars/redhat.yml b/vars/redhat.yml index 943b0bcc..5c1f32bd 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -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"