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

remove package files and minor cleanups

This commit is contained in:
Norbert Varzariu
2015-12-21 18:39:21 +01:00
parent 4879f6822f
commit 569f38f606
57 changed files with 449 additions and 2427 deletions

View File

@@ -111,7 +111,7 @@ class rsnapshot::config (
ensure => 'file',
}
file { $config:
content => template('rsnapshot/rsnapshot.erb')
content => template('rsnapshot/rsnapshot.erb'),
}
$cronfile = "${cron_dir}/${host}"
concat { $cronfile:

View File

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