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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1a7c0d55d631fd50fcda699b4f50387a0c4d325
|
4
|
+
data.tar.gz: f591585e2ec20815bcabf76a49b4d22320e0e34c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|