infrataster-plugin-firewall 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dab37701a4a6c138072f1e492afeba8a10a72858
4
- data.tar.gz: d8ff612f64c33a1caaae7505e4abdede09525b3b
3
+ metadata.gz: 3a154953f06cc108e369c593cd0fc9b281c0a923
4
+ data.tar.gz: 72f9364487fc2031ab4ba8537df18508ea900b7d
5
5
  SHA512:
6
- metadata.gz: 1e8c0a5497bab4cf8b0862784ad5ecbe2350a9d6710ca7a7b9150ace55b767f669d512a212f3ebadc2f697735ac2ced29ca749b8960dd336ecbaddca2f4d6ead
7
- data.tar.gz: 098f89b3e1da836f3bf3b10c5847c0921bcd332d9a4cd908dc6294f650f46fdea20aeebdbdca7c9556f800467e3b2593fc531b47959664a01ff4ec07033258bd
6
+ metadata.gz: a4228110794e3988825298cc18acf225d0dfdeec7269a25894ecce8fa8f7a531a8dcf2323bba63ab18e2617cea557b6be14651a004ad95cfad87748ec71edf6c
7
+ data.tar.gz: 3c3a8ec0446d1bf114309268675b2f790764195e753ac5386527ec8a4b340610958240b7ab5222217467d5bece8c12a868fd524891ae49196ccbc275068f3ecf
data/.gitignore CHANGED
File without changes
File without changes
@@ -3,6 +3,5 @@ cache: bundler
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 1.9.3
7
- - 2.0.0
8
- - 2.1
6
+ - 2.2.5
7
+ - 2.3.1
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
File without changes
@@ -1,5 +1,10 @@
1
1
  # Release Notes
2
2
 
3
+ ## v0.1.5
4
+
5
+ * Fix lack of ssh.loop #7
6
+ * Support FreeBSD and OpenBSD #3
7
+
3
8
  ## v0.1.4
4
9
 
5
10
  * Add feature to judge with ACK #2
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -55,6 +55,7 @@ module Infrataster
55
55
  output = run_check(channel)
56
56
  @output << output.to_s
57
57
  end
58
+ ssh.loop
58
59
  end
59
60
  end
60
61
  end
@@ -26,8 +26,14 @@ module Infrataster
26
26
 
27
27
  def icmp_reachable?
28
28
  dest_addr = Util.address(@dest_node)
29
+ uname = @src_node.server.ssh_exec('uname -s')
30
+ ping_options = '-c 1 -w 3'
31
+ case uname.chomp
32
+ when 'FreeBSD'
33
+ ping_options = '-c 1 -t 3'
34
+ end
29
35
  @src_node.server
30
- .ssh_exec("ping -c1 -W3 #{dest_addr} && echo PING_OK")
36
+ .ssh_exec("ping #{ping_options} #{dest_addr} && echo PING_OK")
31
37
  .include?('PING_OK')
32
38
  end
33
39
 
File without changes
@@ -2,7 +2,7 @@ module Infrataster
2
2
  module Plugin
3
3
  # Infrataster plugin for firewall
4
4
  module Firewall
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
8
8
  end
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infrataster-plugin-firewall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Ota
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: infrataster