itamae-plugin-recipe-zabbix 0.1.0 → 0.1.1

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: 8222e81e825b69610b78eec4b6f490120fadb23d
4
- data.tar.gz: c3a333dbbf92e3ef42ea42bcda9e1221fce19508
3
+ metadata.gz: a1a7c0d55d631fd50fcda699b4f50387a0c4d325
4
+ data.tar.gz: f591585e2ec20815bcabf76a49b4d22320e0e34c
5
5
  SHA512:
6
- metadata.gz: 44c43f75cd098a01c84080742cfadf763db1b98f6b752f31308f166ff7083afc66ab6625075034827ea78c1a253190d1922c669c6f88e10883a7ac232ac2607d
7
- data.tar.gz: 164af23e647bc997b287963643e14db5ecdec06ce2de9c1c32c918cfcdee53cb1a178a9505b6c0e43529fb50daabc8ce1031df0386f2813f4b22b7794702422e
6
+ metadata.gz: 2e88203ebe8af86ee67a222e5731be4f29574babb41475d1e622995286f9c22068dc3d6a813be60ea48bd1de43f7d33976b2c942a33992925ecc6da72090c656
7
+ data.tar.gz: 7e126f625b6b2ab89e4133cd19373cd1de4e23598a3a798515364f38bc91a294e4be3941cbbaa7a611a252ab26dfafd70c30c898f7a22fe8e568c31f684f3504
@@ -15,16 +15,3 @@ cpu = node[:zabbix][:platform_cpu] if node[:zabbix][:platform_cpu]
15
15
  package "http://repo.zabbix.com/zabbix/#{zabbix_version}/#{platform}/#{platform_version}/#{cpu}/zabbix-release-#{zabbix_version}-1.el#{platform_version}.noarch.rpm" do
16
16
  not_if "rpm -q zabbix-release"
17
17
  end
18
-
19
- define :zabbix_userparameters, path: "" do
20
- path = params[:path]
21
-
22
- node[:zabbix][:userparameters].each do |f|
23
- template "/etc/zabbix/zabbix_agentd.d/#{f}" do
24
- owner "root"
25
- group "root"
26
- source path + "/#{f}"
27
- end
28
- end
29
-
30
- end
@@ -15,3 +15,16 @@ end
15
15
  service "zabbix-agent" do
16
16
  subscribes :restart, "template[/etc/zabbix/zabbix_agentd.conf]"
17
17
  end
18
+
19
+ define :zabbix_userparameters, path: "" do
20
+ path = params[:path]
21
+
22
+ node[:zabbix][:userparameters].each do |f|
23
+ template "/etc/zabbix/zabbix_agentd.d/#{f.gsub('.erb', '')}" do
24
+ owner "root"
25
+ group "root"
26
+ source path + "/#{f}"
27
+ end
28
+ end
29
+
30
+ end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Zabbix
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-zabbix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler