Skip to content

Commit

Permalink
fix FreeBSD support
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Nov 5, 2022
1 parent 9d352b6 commit 3940b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
}
}

if $manage_service_file {
if $manage_service_file and and $facts['service_provider'] == 'systemd' {
if $title != 'default' {
$real_service_ensure = $service_ensure == 'running'
$real_service_enable = $service_enable
Expand Down Expand Up @@ -453,7 +453,7 @@
),
}
} else {
if $ulimit_managed {
if $ulimit_managed and $facts['service_provider'] == 'systemd' {
systemd::service_limits { "${service_name}.service":
limits => {
'LimitNOFILE' => $ulimit,
Expand Down
2 changes: 1 addition & 1 deletion manifests/ulimit.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
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 {
if $redis::managed_by_cluster_manager and $facts['kernel'] == 'Linux' {
file { '/etc/security/limits.d/redis.conf':
ensure => 'file',
owner => 'root',
Expand Down

0 comments on commit 3940b1c

Please sign in to comment.