Skip to content

Commit

Permalink
New feature: always install latest keepalived
Browse files Browse the repository at this point in the history
Setting keepalived_use_latest_stable to true will always install
latest keepalived.
  • Loading branch information
evrardjp committed Feb 16, 2016
1 parent 92fc627 commit e29a00b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -16,6 +16,7 @@ Examples are given in the vars folder. Don't try them immediately, they won't wo

The main variables are:

* keepalived_use_latest_stable: This is by default set to false. When set to true, the role will always install latest version of keepalived, making it restart when a new version appears in the ppa.
* keepalived_instances: This is a mandatory dict. It gathers information about the vips, the prefered state (master/backup), the VRRIP IDs and priorities, the password used for authentication...
* keepalived_sync_groups: This is a mandatory dict. It groups items defined in keepalived_instances, and (if desired) allow the configuration of notifications scripts per group of keepalived_instances. Notification scripts are triggered on keepalived's state change and are facultative.
* keepalived_scripts: This is an optional dict where you could have checking scripts that can trigger the notifications scripts.
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Expand Up @@ -16,6 +16,7 @@
## APT Cache options
cache_timeout: 600

keepalived_use_latest_stable: False
keepalived_instances: []
keepalived_sync_groups: []
keepalived_bind_on_non_local: False
Expand Down
9 changes: 9 additions & 0 deletions tasks/main.yml
Expand Up @@ -56,6 +56,15 @@
apt:
pkg: keepalived
state: present
when: not keepalived_use_latest_stable | bool
tags:
- keepalived-apt-packages

- name: install keepalived
apt:
pkg: keepalived
state: latest
when: keepalived_use_latest_stable | bool
tags:
- keepalived-apt-packages

Expand Down

0 comments on commit e29a00b

Please sign in to comment.