Differentiate between Debian and RHEL for Apache

- Apache HTTPD Server is called httpd on RHEL, and apache2 on Debian.
  This adds that distinction for the cinder-api web service.

Change-Id: I457c239f0ff80eb78c49f7a1aae989a8368df80f
This commit is contained in:
Samuel Cassiba 2017-04-07 10:29:01 -07:00
parent a3ba8685a7
commit e5c43eb60b
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ end
cinder_conf_options = merge_config_options 'block-storage'
service 'cinder-apache2' do
service_name 'apache2'
case node['platform_family']
when 'debian'
service_name 'apache2'
when 'rhel'
service_name 'httpd'
end
action :nothing
end