Skip to content

Commit e02ba4f

Browse files
committed
Merge branch 'master' of github.com:TAMUArch/cookbook.memcached
2 parents 1a10fcb + 1014d68 commit e02ba4f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
license 'MIT'
55
description 'Installs/Configures memcached'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '13.3.2'
7+
version '13.3.3'

recipes/default.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@
2424
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525
#
2626

27-
package node["memcached"]["package"] do
27+
package node[:memcached][:package] do
2828
action [:install]
2929
end
3030

3131
# Allows for memory percentage to be used
32-
if node["memcached"]["max_mem"].to_s.match("%")
33-
node.set[:memcached][:max_mem]= ((node["memory"]["total"].to_i / 1024)*(node["memcached"]["max_mem"].to_i * 0.01)).to_i
32+
if node[:memcached][:max_mem].to_s.match("%")
33+
node.set[:memcached][:max_mem]= ((node[:memory][:total].to_i / 1024)*(node[:memcached][:max_mem].to_i * 0.01)).to_i
3434
end
3535

36-
template node["memcached"]["config"] do
36+
template node[:memcached][:config] do
3737
source "memcached.conf.erb"
3838
mode "0644"
3939
owner "root"
4040
group "root"
41-
notifies :restart, "service[#{node["memcached"]["service_name"]}]"
41+
notifies :restart, "service[#{node[:memcached][:service_name]}]"
4242
end
4343

44-
service node["memcached"]["service_name"] do
44+
service node[:memcached][:service_name] do
4545
action [:enable, :start]
4646
end

0 commit comments

Comments
 (0)