From ad4c7f69437780fe673f920ce70a8371327054e2 Mon Sep 17 00:00:00 2001 From: Stephen Hoekstra Date: Tue, 19 Sep 2017 17:22:08 +0200 Subject: [PATCH] Specify minimum supported OS versions --- README.md | 4 ++-- metadata.rb | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e0dec25c8..c81f9b07d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The functionality that was previously in the nagios::client recipe has been move - Debian 8+ - Ubuntu 14.04+ -- Red Hat Enterprise Linux (CentOS/Amazon/Scientific/Oracle) 6+ +- Red Hat Enterprise Linux (CentOS/Amazon/Scientific/Oracle) 7+ **Notes**: This cookbook has been tested on the listed platforms. It may work on other platforms with or without modification. @@ -30,7 +30,7 @@ The functionality that was previously in the nagios::client recipe has been move - apache2 4.0 or greater - build-essential -- nginx +- nginx 7.0 or greater - php - yum-epel diff --git a/metadata.rb b/metadata.rb index b756da16c..8454648e8 100644 --- a/metadata.rb +++ b/metadata.rb @@ -17,18 +17,15 @@ depends 'php-fpm', '>= 0.7.9' depends 'zap', '>= 0.6.0' -%w( build-essential php yum-epel nrpe ).each do |cb| +%w(build-essential php yum-epel nrpe).each do |cb| depends cb end -%w( - amazon - centos - debian - oracle - redhat - scientific - ubuntu -).each do |os| - supports os +%w(centos oracle redhat).each do |os| + supports os, '>= 7.0' end + +supports 'amazon' +supports 'debian', '>= 8.0' +supports 'scientific' +supports 'ubuntu', '>= 14.04'