diff --git a/manifests/params.pp b/manifests/params.pp index ad4f4cf0..91e8e3cc 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -8,13 +8,19 @@ case $facts['osfamily'] { /RedHat/: { - if versioncmp($facts['operatingsystemmajrelease'], '7') >= 0 { + if $facts['operatingsystem'] == 'Amazon' and $facts['operatingsystemmajrelease'] =='2018' { + $json_packages = [ 'rubygem-json' ] + $service_file_location = '/etc/init.d/jira' + $service_file_template = 'jira/jira.initscript.erb' + $service_lockfile = '/var/lock/subsys/jira' + $service_provider = undef + } elsif versioncmp($facts['operatingsystemmajrelease'], '7') >= 0 { $json_packages = [ 'rubygem-json' ] $service_file_location = '/usr/lib/systemd/system/jira.service' $service_file_template = 'jira/jira.service.erb' $service_lockfile = '/var/lock/subsys/jira' $service_provider = 'systemd' - } elsif versioncmp($facts['operatingsystemmajrelease'], '6') >= 0 or $facts['operatingsystem'] == 'Amazon' { + } elsif versioncmp($facts['operatingsystemmajrelease'], '6') >= 0 { $json_packages = [ 'rubygem-json', 'ruby-json' ] $service_file_location = '/etc/init.d/jira' $service_file_template = 'jira/jira.initscript.erb'