blob: b260703a53d0291d5e5235528d9837d2ed4939ac [file] [log] [blame]
define backuppc::client::exclude ($exclude) {
include backuppc::params
include backuppc::client::params
if ! is_array($exclude) {
fail("exclude must be a list")
}
@@concat::fragment { "backuppc_exclude_${::fqdn}_${name}":
target => "${topdir}/pc/${::fqdn}/exclude.list",
content => inline_template("<%= exclude.join('\n') %>"),
require => Concat["${topdir}/pc/${::fqdn}/exclude.list"].
tag => "backuppc_exclude_${::domain}"
}
}