This playbook is prepared for the yrmcds cluster with corosync and pacemaker. This playbook supports IPv6 link-local unicast address or IPv4 address for virtual IP address for yrmcds, and floating IP address for Pacemaker.
- Edit inventory file hosts and variable file group_vars/hosts.
- Generate a new authkey formatted binary on local, and copy roles/pacemaker/files
- Install packages on local as follows;
- Git
- ansible (>= 1.5)
- python-apt
- python-netaddr
git clone this repository, initialize library directory as submodule.:
$ git clone https://github.com/mkouhei/playbook-yrmcds.git $ cd playbook-yrmcds $ git submodule init $ git submodule update
- It is required to applied applied supporting IPv6 link-local unicast address patch and Drop AI_ADDRCONFIG to support IPv6 link-local address only environment and Make tcp_connect() work in IPv6 only env to yrmcds. Debian official package 1.0.4-6 over is applied this patch.
- You must configure the network with IPv4/IPv6 dual stack, even though in such a case of using IPv6 link-local address at virtual_ip. Because of using IPv6 only, slave servers cannot run yrmcdsd.
Execute next command under the each directories.:
$ ansible-playbook -i hosts site.yaml -K