Puppet Class: etcd::snapshot

Defined in:
manifests/snapshot.pp

Summary

This class manages a systemd timer to create snapshots

Overview



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/snapshot.pp', line 7

class etcd::snapshot {
  assert_private()

  systemd::timer { 'etcd-snapshot.timer':
    ensure          => bool2str($etcd::snapshot, 'present', 'absent'),
    timer_content   => epp("${module_name}/snapshot.timer.epp", {
        oncalendar => $etcd::snapshot_oncalendar,
    }),
    service_content => epp("${module_name}/snapshot.service.epp", {
        env  => $etcd::etcdctl_env,
        path => $etcd::snapshot_path,
    }),
    enable          => $etcd::snapshot,
    active          => $etcd::snapshot,
  }
}