Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit 8786855

Browse files
committedApr 29, 2014
add attribute for collectd package name centos support
1 parent d34b21d commit 8786855

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎attributes/default.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.
99
# You may obtain a copy of the License at
10-
#
10+
#
1111
# http://www.apache.org/licenses/LICENSE-2.0
12-
#
12+
#
1313
# Unless required by applicable law or agreed to in writing, software
1414
# distributed under the License is distributed on an "AS IS" BASIS,
1515
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -22,6 +22,7 @@
2222
default[:collectd][:types_db] = ["/usr/share/collectd/types.db"]
2323
default[:collectd][:interval] = 10
2424
default[:collectd][:read_threads] = 5
25+
default[:collectd][:pkg_name] = "collectd-core"
2526

2627
default[:collectd][:collectd_web][:path] = "/srv/collectd_web"
2728
default[:collectd][:collectd_web][:hostname] = "collectd"

‎recipes/default.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.
99
# You may obtain a copy of the License at
10-
#
10+
#
1111
# http://www.apache.org/licenses/LICENSE-2.0
12-
#
12+
#
1313
# Unless required by applicable law or agreed to in writing, software
1414
# distributed under the License is distributed on an "AS IS" BASIS,
1515
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -18,7 +18,7 @@
1818
#
1919

2020
package "collectd" do
21-
package_name "collectd-core"
21+
package_name node[:collectd][:pkg_name]
2222
end
2323

2424
service "collectd" do

0 commit comments

Comments
 (0)
This repository has been archived.