Skip to content

Commit

Permalink
Merge pull request #250 from bmagistro/jira-bitbucket-pkg-conflict
Browse files Browse the repository at this point in the history
switch to using ensure_packages to avoid conflicts
  • Loading branch information
wyardley authored Jun 16, 2018
2 parents e4462f5 + 728fa18 commit a40b36f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions manifests/facts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
}

if $facts['osfamily'] == 'RedHat' and $facts['puppetversion'] !~ /Puppet Enterprise/ {
package { $json_packages:
ensure => present,
}
ensure_packages ($json_packages, { ensure => present })
}

file { "/etc/${dir}facter/facts.d/jira_facts.rb":
Expand Down
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
case $facts['osfamily'] {
/RedHat/: {
if versioncmp($facts['operatingsystemmajrelease'], '7') >= 0 {
$json_packages = 'rubygem-json'
$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'
Expand All @@ -29,7 +29,7 @@
case $::operatingsystem {
'Ubuntu': {
if versioncmp($facts['operatingsystemmajrelease'], '15.04') >= 0 {
$json_packages = 'ruby-json'
$json_packages = [ 'ruby-json' ]
$service_file_location = '/lib/systemd/system/jira.service'
$service_file_template = 'jira/jira.service.erb'
$service_lockfile = '/var/lock/subsys/jira'
Expand All @@ -44,7 +44,7 @@
}
default: {
if versioncmp($facts['operatingsystemmajrelease'], '8') >= 0 {
$json_packages = 'ruby-json'
$json_packages = [ 'ruby-json' ]
$service_file_location = '/lib/systemd/system/jira.service'
$service_file_template = 'jira/jira.service.erb'
$service_lockfile = '/var/lock/subsys/jira'
Expand Down

0 comments on commit a40b36f

Please sign in to comment.