aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp21
1 files changed, 11 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f4ce07c..15e91f2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -21,10 +21,10 @@
# 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
@@ -50,12 +50,13 @@ class backup(
package { "debconf-utils": ensure => installed, }
# See http://www.rfc3092.net/2013/09/missing-modules-for-paramiko-and-gio-in-duplicity-foo/
- package { "python-gobject-2":
- ensure => $::lsbdistcodename ? {
- 'squeeze' => absent,
- default => present,
- },
- }
+ #package { "python-gobject-2":
+ # ensure => $::lsbdistcodename ? {
+ # 'stretch' => present,
+ # 'buster' => absent,
+ # default => absent,
+ # },
+ #}
file { "${backup::params::backupdir_remote}":
ensure => directory,