buluma.keepalived
Ansible Role keepalived
This role installs and configures keepalived.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example is from molecule/default/converge.yml
and is tested with each code change and version release.
---
- name: Setup Keepalived
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.keepalived
keepalived_vrrp_instances:
- name: VI_1
state: MASTER
interface: eth0
unicast_src_ip: "172.17.0.6"
secondary_private_ip: "172.17.0.7"
virtual_router_id: 51
priority: 255
authentication:
auth_type: PASS
auth_pass: "12345"
virtual_ipaddresses:
- name: "172.17.0.8"
cidr: 16
Before running this, the machine must be prepared. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare system
hosts: all
become: yes
gather_facts: no
roles:
- role: buluma.bootstrap
For more information, see a full explanation and example on using these roles.
Role Variables
Default variable values are set in defaults/main.yml
:
---
# default settings for keepalived
# No default configuration is provided as there are no sensible defaults.
# You will need to configure it yourself. Check `molecule/default/converge.yml` for an example.
# All nodes can be set to BACKUP unless you want to start one as MASTER.
# You can see virtual IP configuration using `ip addr list eth0`.
keepalived_vrrp_instances: []
# Example configuration (commented out):
# - name: VI_1
# state: MASTER
# interface: eth0
# unicast_src_ip: "192.168.1.1"
# secondary_private_ip: "192.168.1.2"
# virtual_router_id: 51
# priority: 255
# authentication:
# auth_type: PASS
# auth_pass: 12345
# virtual_ipaddresses:
# - name: "192.168.122.200"
# cidr: 24
Requirements
You need the pip packages listed in requirements.txt.
State of Used Roles
These roles help prepare a system. You can use other ways to prepare your system.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap |
Context
This role is part of many compatible roles. Look at the documentation of these roles for more details.
Overview of related roles:
Compatibility
This role has been tested on the following container images:
Container | Tags |
---|---|
EL | 8 |
Debian | all |
Fedora | all |
opensuse | all |
Ubuntu | all |
Ansible version 2.12 or later is required. Tests have been conducted on:
- Previous versions
- Current version
- Development version
If you encounter any issues, please report them on GitHub.
Changelog
See Role History for updates.
License
This project is licensed under the Apache-2.0 license.
Author Information
ansible-galaxy install buluma.keepalived