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