1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2025-09-13 15:59:28 +00:00

add check for puppet 4

This commit is contained in:
Norbert Varzariu
2015-12-21 16:34:29 +01:00
parent b06a4732b5
commit 4879f6822f
2 changed files with 32 additions and 28 deletions

View File

@@ -13,6 +13,9 @@ class rsnapshot (
$package_name = $rsnapshot::params::package_name,
$package_ensure = $rsnapshot::params::package_ensure,
) inherits rsnapshot::params {
if $::puppetversion =~ /^(1|2|3)/ {
fail("This module requires Puppet 4")
}
if $hosts {
class { 'rsnapshot::install': }->
class { 'rsnapshot::config': }