Skip to content

Commit

Permalink
Merge pull request #180 from syseleven/feature/support1804
Browse files Browse the repository at this point in the history
Add support for 18.04
  • Loading branch information
bastelfreak committed Jan 24, 2019
2 parents 8dc8f83 + f06d329 commit 8d8e7ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -353,7 +353,7 @@ The puppetlabs repositories can be found at:
<http://yum.puppetlabs.com/> and <http://apt.puppetlabs.com/>

* RedHat / CentOS 5/6/7
* Ubuntu 12.04 / 14.04 / 16.04
* Ubuntu 12.04 / 14.04 / 16.04 / 18.04
* Debian 7

Operating Systems without an Augueas version >= 1 such as Ubuntu 12.04 must use
Expand Down
23 changes: 10 additions & 13 deletions manifests/params.pp
Expand Up @@ -23,19 +23,16 @@
/Debian/: {
case $facts['os']['name'] {
/Ubuntu/: {
case $facts['os']['release']['major'] {
/^16.04$/: {
$service_file_location = '/etc/systemd/system/confluence.service'
$service_file_template = 'confluence/confluence.service.erb'
$service_lockfile = '/var/lock/subsys/confluence'
$refresh_systemd = true
}
default: {
$service_file_location = '/etc/init.d/confluence'
$service_file_template = 'confluence/confluence.initscript.erb'
$service_lockfile = '/var/lock/confluence'
$refresh_systemd = false
}
if $facts['service_provider'] == 'systemd' {
$service_file_location = '/etc/systemd/system/confluence.service'
$service_file_template = 'confluence/confluence.service.erb'
$service_lockfile = '/var/lock/subsys/confluence'
$refresh_systemd = true
} else {
$service_file_location = '/etc/init.d/confluence'
$service_file_template = 'confluence/confluence.initscript.erb'
$service_lockfile = '/var/lock/confluence'
$refresh_systemd = false
}
}
default: {
Expand Down
4 changes: 3 additions & 1 deletion metadata.json
Expand Up @@ -50,7 +50,9 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"14.04"
"14.04",
"16.04",
"18.04"
]
}
]
Expand Down

0 comments on commit 8d8e7ea

Please sign in to comment.