add track_script option
diff --git a/tests/pillar/keepalived_cluster.sls b/tests/pillar/keepalived_cluster.sls
index 724a0e0..8dbb4ae 100644
--- a/tests/pillar/keepalived_cluster.sls
+++ b/tests/pillar/keepalived_cluster.sls
@@ -2,12 +2,27 @@
cluster:
enabled: True
instance:
+ VIP0:
+ priority: 100
+ virtual_router_id: 10
+ password: pass
+ addresses:
+ - 192.168.11.1
+ - 192.168.11.2
+ interface: eth0
VIP1:
- priority: 100
- virtual_router_id: 51
+ priority: 100
+ virtual_router_id: 11
password: pass
addresses:
- 192.168.10.1
- 192.168.10.2
interface: eth0
+ track_script: random_check
+ vrrp_scripts:
+ random_check:
+ interval: 10
+ content: |
+ #!/bin/bash
+ exit $(($RANDOM%2))