etcd-tools 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/etcd-tools/etcd_watchdog_vip.rb +1 -1
- data/lib/etcd-tools/watchdog/vip.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjgzOTMxNjYxY2Y0MzQ1ZGIyYzBmZTBjZGM2NzZjNzM0NTRlMzI3OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDY3N2UxOTM4YTVhODhmNDZlM2IwMGE1MzU2ZGEyOGY0YTQ2NDRmZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzJkMmQ1NWZlNmJhOWUxZDhiY2ZkOWVjNDQxYTUxYWUxODk3YjU5Y2JhOGFi
|
10
|
+
NTYwMDk1NTlhMjVlMjhhZmM2NjJmNGUyOGViOGUyNTZlZGUzZGUxMzUxNGVj
|
11
|
+
MzY3N2U3OTA5NWVkYmRmMTEyZGE3MmNmMmY0MTYwY2E5NDFlZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmVhNzJkNzEwODQ4YTI1ZTZiMTFkNjkzZGYxYWZlNmJkMDkzZDY5ZDZlOGU0
|
14
|
+
ZjQ2ZDExMTU1YjdjYTkyZGYwMjdiMzgzMzU0YzcyMzZmMGJkZjQ0ZDM1YjRj
|
15
|
+
NDU0YzM3YjEyODMzNjFmZDA4ZWIzMzkzMDE2NDU5ZjUyMmZkYTM=
|
@@ -33,10 +33,10 @@ module EtcdTools
|
|
33
33
|
# send gratuitous ARP to the network
|
34
34
|
# <IMPLEMENTED>
|
35
35
|
def vip_update_arp!
|
36
|
-
cmd = [ arping, '-U',
|
36
|
+
cmd = [ arping, '-U', '-q',
|
37
37
|
'-c', @config[:parameters][:arping_count],
|
38
38
|
'-I', @config[:parameters][:interface],
|
39
|
-
@config[:parameters][:vip]
|
39
|
+
@config[:parameters][:vip] ]
|
40
40
|
debug "CMD #{cmd.join(' ')}"
|
41
41
|
if system(cmd.join(' '))
|
42
42
|
info 'gratuitous ARP packet sent'
|
@@ -79,11 +79,11 @@ module EtcdTools
|
|
79
79
|
#
|
80
80
|
def vip_dup?
|
81
81
|
cmd_arp = [ arp, '-d', @config[:parameters][:vip], '>/dev/null 2>&1' ]
|
82
|
-
cmd_arping = [ arping, '-D',
|
82
|
+
cmd_arping = [ arping, '-D', '-q',
|
83
83
|
'-c', @config[:parameters][:arping_count],
|
84
|
-
'-w', @config[:parameters][:arping_wait]
|
84
|
+
'-w', @config[:parameters][:arping_wait],
|
85
85
|
'-I', @config[:parameters][:interface],
|
86
|
-
@config[:parameters][:vip]
|
86
|
+
@config[:parameters][:vip] ]
|
87
87
|
debug "CMD #{cmd_arp.join(' ')}"
|
88
88
|
system(cmd_arp.join(' '))
|
89
89
|
debug "CMD #{cmd_arping.join(' ')}"
|