Skip to content

Commit

Permalink
(role/rke2{agent,server}) update backup dirs to include rke2 tls certs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Oct 1, 2024
1 parent 33ef79c commit b7e13a8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
7 changes: 5 additions & 2 deletions hieradata/role/rke2agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ restic::repositories:
backup_path:
- "/etc/cni"
- "/etc/rancher"
- "/var/lib/rancher/rke2/agent"
- "/var/lib/rancher/rke2"
- "/var/lib/rook"
backup_flags: "--exclude=/var/lib/rook/rook-ceph/log"
backup_flags:
- "--exclude=/var/lib/rancher/rke2/agent/containerd"
- "--exclude=/var/lib/rancher/rke2/agent/logs"
- "--exclude=/var/lib/rook/rook-ceph/log"
backup_timer: "*-*-* 09:00:00"
enable_forget: true
forget_timer: "Mon..Sun 23:00:00"
Expand Down
7 changes: 5 additions & 2 deletions hieradata/role/rke2server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ restic::repositories:
backup_path:
- "/etc/cni"
- "/etc/rancher"
- "/var/lib/rancher/rke2/server/db/snapshots"
- "/var/lib/rancher/rke2"
- "/var/lib/rook"
backup_flags: "--exclude=/var/lib/rook/rook-ceph/log"
backup_flags:
- "--exclude=/var/lib/rancher/rke2/agent/containerd"
- "--exclude=/var/lib/rancher/rke2/agent/logs"
- "--exclude=/var/lib/rook/rook-ceph/log"
backup_timer: "*-*-* 09:00:00"
enable_forget: true
forget_timer: "Mon..Sun 23:00:00"
Expand Down
8 changes: 6 additions & 2 deletions spec/hosts/roles/rke2agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@
backup_path: %w[
/etc/cni
/etc/rancher
/var/lib/rancher/rke2/agent
/var/lib/rancher/rke2
/var/lib/rook
],
backup_flags: '--exclude=/var/lib/rook/rook-ceph/log',
backup_flags: %w[
--exclude=/var/lib/rancher/rke2/agent/containerd
--exclude=/var/lib/rancher/rke2/agent/logs
--exclude=/var/lib/rook/rook-ceph/log
],
backup_timer: '*-*-* 09:00:00',
enable_forget: true,
forget_timer: 'Mon..Sun 23:00:00',
Expand Down
8 changes: 6 additions & 2 deletions spec/hosts/roles/rke2server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@
backup_path: %w[
/etc/cni
/etc/rancher
/var/lib/rancher/rke2/server/db/snapshots
/var/lib/rancher/rke2
/var/lib/rook
],
backup_flags: '--exclude=/var/lib/rook/rook-ceph/log',
backup_flags: %w[
--exclude=/var/lib/rancher/rke2/agent/containerd
--exclude=/var/lib/rancher/rke2/agent/logs
--exclude=/var/lib/rook/rook-ceph/log
],
backup_timer: '*-*-* 09:00:00',
enable_forget: true,
forget_timer: 'Mon..Sun 23:00:00',
Expand Down

0 comments on commit b7e13a8

Please sign in to comment.