Dmitry Kalashnik | 1dd0fd0 | 2017-04-07 16:44:48 +0400 | [diff] [blame] | 1 | applications: |
| 2 | - keepalived |
| 3 | classes: |
| 4 | - service.keepalived.support |
| 5 | parameters: |
| 6 | _param: |
| 7 | keepalived_vip_priority: 101 |
Mateusz Matuszkowiak | 6d63d46 | 2018-02-23 10:51:44 +0100 | [diff] [blame] | 8 | keepalived_prometheus_vrrp_script_content: "pidof haproxy && docker service ls" |
Dmitry Kalashnik | 1dd0fd0 | 2017-04-07 16:44:48 +0400 | [diff] [blame] | 9 | keepalived: |
| 10 | cluster: |
Mateusz Matuszkowiak | 6d63d46 | 2018-02-23 10:51:44 +0100 | [diff] [blame] | 11 | vrrp_scripts: |
| 12 | vip: |
| 13 | content: ${_param:keepalived_prometheus_vrrp_script_content} |
| 14 | interval: 30 |
| 15 | rise: 1 |
| 16 | fall: 1 |
Dmitry Kalashnik | 1dd0fd0 | 2017-04-07 16:44:48 +0400 | [diff] [blame] | 17 | enabled: true |
| 18 | instance: |
| 19 | prometheus_server_vip: |
| 20 | address: ${_param:keepalived_prometheus_vip_address} |
| 21 | password: ${_param:keepalived_prometheus_vip_password} |
| 22 | interface: ${_param:keepalived_prometheus_vip_interface} |
| 23 | virtual_router_id: 105 |
| 24 | priority: ${_param:keepalived_vip_priority} |
Mateusz Matuszkowiak | 6d63d46 | 2018-02-23 10:51:44 +0100 | [diff] [blame] | 25 | track_script: vip |