Skip to content

Commit 2ca5062

Browse files
authored
Refine iptables rule for node exporter (#27)
1 parent 20a03b0 commit 2ca5062

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cookbooks/boxcutter_prometheus/recipes/node_exporter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
# Port 9100 is the default node exporter port
2020
node.default['fb_iptables']['filter']['INPUT']['rules']['node_exporter'] = {
21-
'rules' => [
22-
'-p tcp --dport 9100 -j ACCEPT',
23-
],
21+
'rule' => '-p tcp --dport 9100 -j ACCEPT',
2422
}
2523

2624
include_recipe 'boxcutter_prometheus::user'

0 commit comments

Comments
 (0)