openstack-ansible/playbooks/roles/galera_server
Kevin Carter 886fe01edb Add release pinning to galera roles
As both Ubuntu and the MariaDB repositories carry packages with the same
names, apt package pinning is required to ensure that the packages we install
come from the right repository. This patch adds a pinning preference file to
ensure that the packages we install come from the MariaDB repository.

Due to the OpenStack CI images having conflicting packages installed in the
base image, this patch also includes the removal of these packages during the
AIO bootstrap to ensure that the deployment succeeds.

For environments where the same two packages are installed on the hosts prior
to the deployment of os-ansible-deployment, they would need to ensure that the
packages are removed first. This has been seen in environments where
monitoring tooling has installed the packages as a dependancy.

Closes-Bug: #1446772
Change-Id: I5ad0b9010e49832c4f866c0b141e1c035d5f9268
2015-04-23 10:32:35 +01:00
..
defaults Add release pinning to galera roles 2015-04-23 10:32:35 +01:00
files Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
meta Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
tasks Add release pinning to galera roles 2015-04-23 10:32:35 +01:00
templates Add release pinning to galera roles 2015-04-23 10:32:35 +01:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00

README.rst

OpenStack Galera Server

tags

openstack, galera, server, cloud, ansible

category

*nix

Role for the installation and installation of a Galera Cluster powered by MariaDB

- name: Install galera server
  hosts: galera_all
  user: root
  roles:
    - { role: "galera_server", tags: [ "galera-server" ] }
  vars:
    container_address: "{{ ansible_ssh_host }}"
    galera_wsrep_address: "10.0.0.1,10.0.0.2,10.0.0.3"
    galera_wsrep_node_name: "{{ ansible_hostname }}"
    galera_wsrep_cluster_address: "{{ container_address }}"
    galera_address: "{{ container_address }}"
    galera_root_password: secrete
    galera_root_user: root