Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392475
ulimit.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
921 B
Subscribers
None
ulimit.pp
View Options
# Redis class for configuring ulimit
# Used to DRY up the config class, and
# move the logic for ulimit changes all
# into one place.
#
# Parameters are not required as it's a
# private class only referencable from
# the redis module, where the variables
# would already be defined
#
# @example
# contain redis::ulimit
#
# @author - Peter Souter
#
# @api private
class
redis
::
ulimit
{
assert_private
(
'The redis::ulimit class is only to be called from the redis::config class'
)
if
$redis::managed_by_cluster_manager
{
file
{
'/etc/security/limits.d/redis.conf'
:
ensure
=>
'file'
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
content
=>
"redis soft nofile ${redis::ulimit}\nredis hard nofile ${redis::ulimit}\n"
,
}
}
# Migrate from the old managed service
file
{
"/etc/systemd/system/${redis::service_name}.service.d/limit.conf"
:
ensure
=>
absent
,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jun 4 2025, 6:59 PM (11 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3394917
Attached To
R226 puppet-puppet-redis
Event Timeline
Log In to Comment