# along with this program. If not, see <http://www.gnu.org/licenses/>.
class backup(
- $when = hiera('backup::when', 'everyday at 01:00'),
- $audit_rsync = hiera('backup::audit_rsync', true),
- $reportwarning = hiera('backup::reportwarning', true),
- $hwinfo = hiera('backup::hwinfo', 'installed')
+ $when = lookup('backup::when', undef, undef, 'everyday at 01:00'),
+ $audit_rsync = lookup('backup::audit_rsync', undef, undef, true),
+ $reportwarning = lookup('backup::reportwarning', undef, undef, true),
+ $hwinfo = lookup('backup::hwinfo', undef, undef, 'installed')
) {
include backup::params
class backup::params {
# backup folder
- $backupdir = hiera('backup::dir', "/var/backups")
- $backupdir_remote = hiera('backup::dir::remote', "$backupdir/remote")
- $backupdir_users = hiera('backup::dir::users', "$backupdir/users")
- $backupdir_ensure = hiera('backup::dir::ensure', 'directory')
+ $backupdir = lookup('backup::dir', undef, undef, "/var/backups")
+ $backupdir_remote = lookup('backup::dir::remote', undef, undef, "$backupdir/remote")
+ $backupdir_users = lookup('backup::dir::users', undef, undef, "$backupdir/users")
+ $backupdir_ensure = lookup('backup::dir::ensure', undef, undef, 'directory')
# for data that's going to be encrypted and signed
$include_unencrypted = [ "/etc", "/var", "/home", "/root" ]
define backup::user(
$ensure = present,
$hosting_domain = $::domain,
- $sshkey = hiera("'ssh_authorized_key::${name}.${hosting_domain}'"),
+ $sshkey = lookup("'ssh_authorized_key::${name}.${hosting_domain}'"),
) {
user::manage { $name:
ensure => $ensure,