summaryrefslogtreecommitdiff
path: root/config-joey.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-12 22:36:36 -0400
committerJoey Hess2014-04-12 22:36:36 -0400
commitc7830f4e669735bf46945592b315e7e367129888 (patch)
treeae210656a5e5bc63568e163561847e655dcc971d /config-joey.hs
parent596c6590e8d83a5e81503f991debd5c804600af8 (diff)
propellor spin
Diffstat (limited to 'config-joey.hs')
-rw-r--r--config-joey.hs10
1 files changed, 8 insertions, 2 deletions
diff --git a/config-joey.hs b/config-joey.hs
index 7403f873..a983e87b 100644
--- a/config-joey.hs
+++ b/config-joey.hs
@@ -18,6 +18,7 @@ import qualified Propellor.Property.OpenId as OpenId
import qualified Propellor.Property.Docker as Docker
import qualified Propellor.Property.Git as Git
import qualified Propellor.Property.Gpg as Gpg
+import qualified Propellor.Property.Obnam as Obnam
import qualified Propellor.Property.SiteSpecific.GitHome as GitHome
import qualified Propellor.Property.SiteSpecific.GitAnnexBuilder as GitAnnexBuilder
import qualified Propellor.Property.SiteSpecific.JoeySites as JoeySites
@@ -72,8 +73,13 @@ hosts =
& Apt.buildDep ["git-annex"] `period` Daily
& Git.daemonRunning "/srv/git"
& File.ownerGroup "/srv/git" "joey" "joey"
- & Gpg.keyImported "git.kitenet.net obnam backup key" "root"
- & Ssh.keyImported SshRsa "root"
+ & Obnam.backup "/srv/git" "33 3 * * *"
+ [ "--repository=2318@usw-s002.rsync.net:git.kitenet.net"
+ , "--encrypt-with=1B169BE1"
+ ]
+ `requires` Gpg.keyImported "1B169BE1" "root"
+ `requires` Ssh.keyImported SshRsa "root"
+
-- git repos restore (how?) (also make backups!)
-- family annex needs family members to have accounts,
-- ssh host key etc.. finesse?