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

add basic tests

This commit is contained in:
Norbert Varzariu
2016-01-18 20:53:24 +01:00
parent 03c73285ca
commit 09b6b4431c
4 changed files with 9 additions and 7 deletions

View File

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