All Projects → Oefenweb → Ansible Keepalived

Oefenweb / Ansible Keepalived

Licence: mit
Ansible role to set up keepalived in Debian-like systems

Projects that are alternatives of or similar to Ansible Keepalived

Debops
DebOps - Your Debian-based data center in a box
Stars: ✭ 734 (+3395.24%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+795.24%)
Mutual labels:  ansible, ubuntu, debian
Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (+585.71%)
Mutual labels:  ansible, ubuntu, debian
Mattermost Ansible
Ansible playbook to provide a turnkey solution for the Team Edition of Mattermost
Stars: ✭ 126 (+500%)
Mutual labels:  ansible, ubuntu, debian
Switch Apt Mirror.ansible.role
switch apt mirror for Debian & Ubuntu with Ansible role.
Stars: ✭ 5 (-76.19%)
Mutual labels:  ansible, ubuntu, debian
Pimp My Box
🌱 Automated seedbox install of rTorrent-PS and PyroScope CLI etc. via Ansible.
Stars: ✭ 127 (+504.76%)
Mutual labels:  ansible, ubuntu, debian
Ansipress
AnsiPress - Simple L(Linux) E(NGINX) M(MariaDB) P(PHP7) Shared Hosting Setup
Stars: ✭ 184 (+776.19%)
Mutual labels:  ansible, ubuntu, debian
Rocket.chat.ansible
Deploy Rocket.Chat with Ansible!
Stars: ✭ 80 (+280.95%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+1795.24%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (+1533.33%)
Mutual labels:  ansible, ubuntu, debian
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (+480.95%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+3923.81%)
Mutual labels:  ansible, ubuntu, debian
Ansible Postfix
Ansible role to set up postfix in Debian-like systems
Stars: ✭ 102 (+385.71%)
Mutual labels:  ansible, ubuntu, debian
Plexguide.com
Welcome to https://PlexGuide.com ~ Rapidly deploy multiple-hasty Docker Containers through Ansible with local or Unlimited Google HD Space!
Stars: ✭ 1,631 (+7666.67%)
Mutual labels:  ansible, ubuntu, debian
Vagrant Box Templates
Stars: ✭ 100 (+376.19%)
Mutual labels:  ansible, ubuntu, debian
Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (+666.67%)
Mutual labels:  ansible, ubuntu, debian
Ansible Mariadb Galera Cluster
Stars: ✭ 49 (+133.33%)
Mutual labels:  ansible, ubuntu, debian
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (+176.19%)
Mutual labels:  ansible, ubuntu, debian
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+1523.81%)
Mutual labels:  ansible, ubuntu, debian
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+2257.14%)
Mutual labels:  ansible, ubuntu, debian

keepalived

Build Status Ansible Galaxy

Set up the latest or a specific version of Keepalived in Debian-like systems.

Requirements

  • git (will be installed)
  • build-essential (will be installed)
  • automake (will be installed)
  • libtool (will be installed)
  • pkg-config (will be installed)
  • libssl-dev (will be installed)

Variables

  • keepalived_git_repo: [default: https://github.com/acassen/keepalived.git]: Keepalived git repo

  • keepalived_version: [default: v2.1.5]: Keepalived version to install

  • keepalived_install: [default: []]: Additional packages to install (e.g. ['libnl-3-dev', 'libnl-genl-3-dev', 'libnl-route-3-dev', 'libnfnetlink-dev'])

  • keepalived_configure_options: [default: []]: Options to pass to ./configure

  • keepalived_options: [default: []]: Options to pass to the keepalived

  • keepalived_options.{n}.name: [required]: Option name (e.g. log-facility)

  • keepalived_options.{n}.value: [optional]: Option value (e.g. 7)

  • keepalived_ip_nonlocal_bind: [default: 1]: Allow to bind to IP addresses that are nonlocal, meaning that they're not assigned to a device on the local system

  • keepalived_create_keepalived_script_user: [default: false]: Whether or not to create the keepalived_script user, see keepalived_global_defs_script_user

  • keepalived_global_defs_notification_email: [default: ['[email protected]']]: Email addresses to send alerts to

  • keepalived_global_defs_notification_email_from: [default: '[email protected]']: From address that will be in header

  • keepalived_global_defs_smtp_server: [default: '127.0.0.1']: SMTP server IP address

  • keepalived_global_defs_smtp_connect_timeout: [default: 30]: SMTP server connect timeout in seconds

  • keepalived_global_defs_script_user: [optional]: Specify the default user / group to run scripts under. If group is not specified, the group of the user is used. If this option is not specified, the user defaults to keepalived_script. If that user exists, otherwise root (since 1.3.0, e.g. 'nobody nogroup', )

  • keepalived_global_defs_enable_script_security: [optional]: Don't run scripts configured to be run as root if any part of the path is writable by a non-root user (since 1.3.0, e.g. true)

  • keepalived_global_defs_raw: [optional]: An optional list of raw parameters to add to the global_defs config section

  • keepalived_vrrp_script_map: [default: {}]: Script declarations

  • keepalived_vrrp_script_map.key: [required]: The identifier of the file (e.g. check-haproxy)

  • keepalived_vrrp_script_map.key.src: [required]: The local path of the file to copy, can be absolute or relative (e.g. ../../../files/keepalived/usr/local/bin/check-haproxy)

  • keepalived_vrrp_script_map.key.dest: [required]: The remote path of the file to copy (e.g. /usr/local/bin/check-haproxy)

  • keepalived_vrrp_script_map.key.owner: [optional, default root]: The name of the user that should own the file

  • keepalived_vrrp_script_map.key.group: [optional, default root]:The name of the group that should own the file

  • keepalived_vrrp_script_map.key.mode: [optional, default 0750]: The mode of the file

  • keepalived_vrrp_scripts: [default: {}]: VRRP script declarations

  • keepalived_vrrp_scripts.key: The name of the VRRP script

  • keepalived_vrrp_scripts.key.script: The script to run periodically

  • keepalived_vrrp_scripts.key.weight: [optional]: The check weight to adjust the priority

  • keepalived_vrrp_scripts.key.interval: [optional]: The check interval in seconds

  • keepalived_vrrp_scripts.key.timeout: [optional]: Seconds after which script is considered to have failed

  • keepalived_vrrp_scripts.key.rise: [optional]: Required number of successes for OK transition

  • keepalived_vrrp_scripts.key.fall: [optional]: Required number of successes for KO transition

  • keepalived_vrrp_instances: [default: {}]: VRRP instance declarations

  • keepalived_vrrp_instances.key: The name of the VRRP instance

  • keepalived_vrrp_instances.key.interface: Interface bound by VRRP

  • keepalived_vrrp_instances.key.state: Start-up default state (MASTER|BACKUP). As soon as the other machine(s) come up, an election will be held and the machine with the highest priority will become MASTER

  • keepalived_vrrp_instances.key.priority: For electing MASTER highest priority (0...255) wins

  • keepalived_vrrp_instances.key.virtual_router_id: Arbitrary unique number (0...255) used to differentiate multiple instances of VRRPD running on the same NIC (and hence same socket)

  • keepalived_vrrp_instances.key.advert_int: [optional]: The advert interval in seconds

  • keepalived_vrrp_instances.key.smtp_alert: [optional]: Whether or not to send email notifications during state transitioning-

  • keepalived_vrrp_instances.key.authentication: [optional]: Authentication block

  • keepalived_vrrp_instances.key.authentication.auth_type: Simple password or IPSEC AH (PASS|AH)

  • keepalived_vrrp_instances.key.authentication.auth_pass: Password string (up to 8 characters)

  • keepalived_vrrp_instances.key.virtual_ipaddresses: VRRP IP address block

  • keepalived_vrrp_instances.key.virtual_ipaddresses_excluded: IP address block, which is not included in the VRRP packet itself, in order to support more than 20 ips

  • keepalived_vrrp_instances.key.nopreempt: [optional]: VRRP will normally preempt a lower priority machine when a higher priority machine comes online. This option allows the lower priority machine to maintain the master role, even when a higher priority machine comes back online. NOTE: For this to work, the initial state of this entry must be BACKUP

  • keepalived_vrrp_instances.key.preempt_delay: [optional]: Seconds after startup until preemption (if not disabled by nopreempt). Range: 0 (default) to 1000 NOTE: For this to work, the initial state of this entry must be BACKUP

  • keepalived_vrrp_instances.key.track_interfaces: [optional]: Interface states we monitor

  • keepalived_vrrp_instances.key.track_scripts: [optional]: Scripts state we monitor

  • keepalived_vrrp_instances.key.notify: [optional]: Scripts that is invoked when a server changes state

  • keepalived_vrrp_instances.key.notify_user: [optional]: Specify the user / group to run this script under (since 1.3.0, e.g. 'nobody nogroup')

  • keepalived_vrrp_instances.key.notify_backup: [optional]: Scripts that is invoked when a server changes state (to BACKUP)

  • keepalived_vrrp_instances.key.notify_backup_user: [optional]: Specify the user / group to run this script under (since 1.3.0)

  • keepalived_vrrp_instances.key.notify_fault: [optional]: Scripts that is invoked when a server changes state (to FAULT)

  • keepalived_vrrp_instances.key.notify_fault_user: [optional]: Specify the user / group to run this script under (since 1.3.0)

  • keepalived_vrrp_instances.key.notify_master: [optional]: Scripts that is invoked when a server changes state (to MASTER)

  • keepalived_vrrp_instances.key.notify_master_user: [optional]: Specify the user / group to run this script under (since 1.3.0)

  • keepalived_vrrp_instances.key.unicast_peer: [optional]: IP address of aired unicast address (if you don't want to use multicast)

  • keepalived_vrrp_instances.key.raw_options: [optional]: An optional list of raw parameters to add to the vrrp instance

Dependencies

None

Example (HAProxy)

---
- hosts: all
  roles:
    - keepalived
  vars:
    keepalived_options:
      - name: log-detail
    keepalived_vrrp_scripts:
      chk_haproxy:
        script: '/bin/pidof haproxy'
        weight: 2
        interval: 1

    keepalived_vrrp_instances:
      VI_1:
        interface: eth1
        state: MASTER
        priority: 101
        virtual_router_id: 51

        authentication:
          auth_type: PASS
          auth_pass: '4Apr3C*d'

        virtual_ipaddresses:
          - '10.0.0.10/24 dev eth1 label eth1:1'

        track_interfaces:
          - eth0 weight 10

        track_scripts:
          - chk_haproxy

        raw_options:
          - dont_track_primary

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].