module PackageUtils
def cron_pkg_name
case node['platform_family']
- when 'debian'then return 'cron'
- when 'rhel' then return 'crontabs'
+ when 'debian'then 'cron'
+ when 'rhel' then 'crontabs'
end
end
def cron_serv_name
case node['platform_family']
- when 'debian'then return 'cron'
- when 'rhel' then return 'crond'
+ when 'debian'then 'cron'
+ when 'rhel' then 'crond'
end
end
def httpd_pkg_name
case node['platform_family']
- when 'debian'then return 'apache2'
- when 'rhel' then return 'httpd'
+ when 'debian'then 'apache2'
+ when 'rhel' then 'httpd'
end
end
def httpd_serv_name
case node['platform_family']
- when 'debian'then return 'apache2'
- when 'rhel' then return 'httpd'
+ when 'debian'then 'apache2'
+ when 'rhel' then 'httpd'
end
end
def jsvc_pkg_name
case node['platform_family']
- when 'debian' then return 'jsvc'
- when 'rhel' then return 'jakarta-commons-daemon-jsvc'
+ when 'debian' then 'jsvc'
+ when 'rhel' then 'jakarta-commons-daemon-jsvc'
end
end
def libbz2_pkg_name
case node['platform_family']
- when 'debian' then return 'libbz2-1.0'
- when 'rhel' then return 'bzip2-libs'
+ when 'debian' then 'libbz2-1.0'
+ when 'rhel' then 'bzip2-libs'
end
end
end