itamae-plugin-resource-iptables 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e43900cdf75a2c43f05abf8cda0752bb6c2b7dfc
|
4
|
+
data.tar.gz: 239c9de4e48709f4b8200fc3685f3eb921ed8e9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0824a935f43f1ce7e9d7238dd23b73808b01aa4f155c45fe63b56b1403eabc67c44611b34c4c2d73c3337a07a1f13f0349308ff6d0e85acb8bbc3fd12b0e20
|
7
|
+
data.tar.gz: b39d925089931ee8d4666919244935afbfc75c822576871963c0755374cb8c105fc94c0c831dbfefb5a7e059e833b4382ec5e645fdcdc4b33ca4d70c4f39a82d
|
@@ -11,7 +11,7 @@ module Itamae
|
|
11
11
|
def set_current_attributes
|
12
12
|
current.exist = run_command(['iptables', '--table', attributes.table, '--list-rules', attributes.chain], error: false).exit_status == 0
|
13
13
|
unless current.exist
|
14
|
-
|
14
|
+
Itamae.logger.info "Create chain #{attributes.chain}"
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -33,7 +33,7 @@ module Itamae
|
|
33
33
|
rule = build_rule(attributes)
|
34
34
|
current.exist = run_command(['iptables', '--table', attributes.table, '--check', attributes.chain] + rule, error: false).exit_status == 0
|
35
35
|
unless current.exist
|
36
|
-
|
36
|
+
Itamae.logger.info "Create rule for #{attributes.chain}: #{rule.join(' ')}"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-resource-iptables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.4.5
|
102
|
+
rubygems_version: 2.4.5.1
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: itamae resource plugin to manage iptables.
|