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:
@@ -86,7 +86,12 @@ end
|
|||||||
cinder_conf_options = merge_config_options 'block-storage'
|
cinder_conf_options = merge_config_options 'block-storage'
|
||||||
|
|
||||||
service 'cinder-apache2' do
|
service 'cinder-apache2' do
|
||||||
|
case node['platform_family']
|
||||||
|
when 'debian'
|
||||||
service_name 'apache2'
|
service_name 'apache2'
|
||||||
|
when 'rhel'
|
||||||
|
service_name 'httpd'
|
||||||
|
end
|
||||||
action :nothing
|
action :nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user