Skip to content

Commit

Permalink
Fedora also needs its systemd unit file adjusted
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Albertson <[email protected]>
  • Loading branch information
ramereth committed Dec 3, 2020
1 parent 1d46149 commit 0f90b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def openldap_el8_systemd_unit
},
}
end

def openldap_el8_systemd_unit?
(platform_family?('rhel') && node['platform_version'].to_i >= 8) || platform_family?('fedora')
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
systemd_unit 'slapd.service' do
content openldap_el8_systemd_unit
action [:create]
end if platform_family?('rhel') && node['platform_version'].to_i >= 8
end if openldap_el8_systemd_unit?

service 'slapd' do
action [:enable, :start]
Expand Down

0 comments on commit 0f90b39

Please sign in to comment.