diff --git a/.gitignore b/.gitignore index fc5bd90..ec1739d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /pkg +*.iml +/.idea diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e20049..74562eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ + +- Support Ubuntu 18.04 + ## 2017-10-31 - Release 0.9.11 - Support Debian 9 diff --git a/README.md b/README.md index 0ccd321..ac5b7fe 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ Module has been tested on: * Puppet 3.6 * OS: - * Debian 6,7,8,9 - * RHEL/CentOS 6,7 +* Debian 6,7,8,9 +* Ubuntu 18.04 +* RHEL/CentOS 6,7 Required modules: diff --git a/manifests/params.pp b/manifests/params.pp index 81222c6..80b7012 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -69,6 +69,23 @@ } } + 'Ubuntu': { + case $::operatingsystemmajrelease { + '18.04': { + $class_kernel = 'grub2' + $class_bootloader = 'grub2' + $class_getty = undef + $cmd_refresh_init = undef + $cmd_refresh_bootloader = '/usr/sbin/update-grub' + } + + default: { + fail("Unsupported OS version: \ +${::operatingsystem} ${::operatingsystemmajrelease}") + } + } + } + default: { fail("Unsupported OS: ${::operatingsystem}") } diff --git a/metadata.json b/metadata.json index 999ad49..e553abe 100644 --- a/metadata.json +++ b/metadata.json @@ -62,6 +62,12 @@ "8", "9" ] + }, + { + "operatingsystem": "Ubuntu", + "operatingsystemrelease": [ + "18.04" + ] } ], "requirements": [