-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Vagrant testing and cleanup tests
Now that we rely on molecule and don't rely on Vagrant anymore, we can remove all the Vagrant bits and playbooks. To clarify, tests playbooks were renamed.
- Loading branch information
Showing
7 changed files
with
55 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
vrrp_nic: eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# This is a standalone playbook to install keepalived | ||
# on all nodes, having the first node the master, and | ||
# the rest of nodes as fallback. It is showing an | ||
# example of service, haproxy, to work with it. | ||
# In your own environment, you should probably | ||
# have your own group/host vars to define the content | ||
# of keepalived_haproxy_combined_example.yml. | ||
# Please note that keepalived_haproxy_combined_example.yml | ||
# relies on calculations to have a single var file. | ||
# You don't need that, it's just for convenience. | ||
# To see a simpler example (with more detailed variables) | ||
# check the other playbook: playbook-with-fine-grained-vars.yml | ||
- name: Install keepalived | ||
hosts: all | ||
order: sorted | ||
vars: | ||
# All nodes will broadcast vrrp on eth0 | ||
# You should probably use group/host vars instead. | ||
vrrp_nic: eth0 | ||
tasks: | ||
- name: Include a single (combined) var file for all nodes | ||
include_vars: "keepalived_haproxy_combined_example.yml" | ||
|
||
- name: "Include ansible-keepalived" | ||
include_role: | ||
name: "ansible-keepalived" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- name: Install keepalived on master node for haproxy use | ||
hosts: master_node | ||
# The VRRP NIC is defined in group/host vars | ||
# You can define the equivalent of the include_vars there. | ||
tasks: | ||
- name: Include the variables for the master configuration | ||
include_vars: "keepalived_haproxy_master_example.yml" | ||
|
||
- name: "Include ansible-keepalived" | ||
include_role: | ||
name: "ansible-keepalived" | ||
|
||
- name: Install keepalived on the rest of the nodes for haproxy use | ||
hosts: all:!master_node | ||
# VRRP NIC variable is defined in inventory | ||
# You should probably fine grain the variables of keepalived per | ||
# host instead of include_vars, but hey, this is just an example. | ||
tasks: | ||
- name: Include the var file for all the other nodes | ||
include_vars: "keepalived_haproxy_backup_example.yml" | ||
|
||
- name: "Include ansible-keepalived" | ||
include_role: | ||
name: "ansible-keepalived" |