summaryrefslogtreecommitdiffstats
path: root/modules/partofme
diff options
context:
space:
mode:
Diffstat (limited to 'modules/partofme')
-rw-r--r--modules/partofme/files/restic_authorized_keys1
-rw-r--r--modules/partofme/manifests/backups.pp13
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/partofme/files/restic_authorized_keys b/modules/partofme/files/restic_authorized_keys
new file mode 100644
index 0000000..e5899af
--- /dev/null
+++ b/modules/partofme/files/restic_authorized_keys
@@ -0,0 +1 @@
+ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN9q+9xAT1WUQpnV1jK71BZXwhNTocyJhh3E53vZPLnj doy@hornet
diff --git a/modules/partofme/manifests/backups.pp b/modules/partofme/manifests/backups.pp
index d66565f..fc90010 100644
--- a/modules/partofme/manifests/backups.pp
+++ b/modules/partofme/manifests/backups.pp
@@ -16,6 +16,19 @@ class partofme::backups {
host => 'localhost';
}
+ include restic::server
+ file {
+ "/media/persistent/restic/.ssh/authorized_keys":
+ source => 'puppet:///modules/partofme/restic_authorized_keys',
+ owner => 'restic',
+ group => 'restic',
+ mode => '0600',
+ require => Class['restic::server'];
+ }
+
+ class { 'restic::local':
+ }
+
package { 'rclone':
ensure => installed;
}