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:
@@ -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': }
|
||||
|
Reference in New Issue
Block a user