Merge pull request #27878 from rallytime/fix-26284

Use apache2ctl binary on SUSE in apache module
This commit is contained in:
Mike Place 2015-10-13 08:45:56 -06:00
commit 97da0a87e3

View file

@ -49,9 +49,10 @@ def _detect_os():
Apache commands and paths differ depending on packaging
'''
# TODO: Add pillar support for the apachectl location
if __grains__['os_family'] == 'RedHat':
os_family = __grains__['os_family']
if os_family == 'RedHat':
return 'apachectl'
elif __grains__['os_family'] == 'Debian':
elif os_family == 'Debian' or os_family == 'Suse':
return 'apache2ctl'
else:
return 'apachectl'