Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392482
redis_administration_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
815 B
Subscribers
None
redis_administration_spec.rb
View Options
require
'spec_helper'
describe
'redis::administration'
do
context
'should set kernel and system values'
do
it
do
is_expected
.
to
contain_sysctl
(
'vm.overcommit_memory'
)
.
with
(
'ensure'
=>
'present'
,
'value'
=>
'1'
)
end
it
do
is_expected
.
to
contain_exec
(
'Disable Hugepages'
)
.
with
(
'command'
=>
'echo never > /sys/kernel/mm/transparent_hugepage/enabled'
,
'path'
=>
[
'/sbin'
,
'/usr/sbin'
,
'/bin'
,
'/usr/bin'
]
,
'onlyif'
=>
'test -f /sys/kernel/mm/transparent_hugepage/enabled'
,
'unless'
=>
'cat /sys/kernel/mm/transparent_hugepage/enabled | grep "
\\
[never
\\
]"'
)
end
it
do
is_expected
.
to
contain_sysctl
(
'net.core.somaxconn'
)
.
with
(
'ensure'
=>
'present'
,
'value'
=>
'65535'
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 6:59 PM (11 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3381776
Attached To
R226 puppet-puppet-redis
Event Timeline
Log In to Comment