summaryrefslogtreecommitdiff
path: root/joeyconfig.hs
diff options
context:
space:
mode:
authorJoey Hess2016-08-31 17:32:23 -0400
committerJoey Hess2016-08-31 17:32:23 -0400
commitf38a1d0c0d8e482198e3f2a29ac92702715a755a (patch)
tree0e09fa4ca7b4c6f1756bf8fe92b8ad2008a851cd /joeyconfig.hs
parentb769419aafe2331d512e8ae02f5ba925bd5f7185 (diff)
propellor spin
Diffstat (limited to 'joeyconfig.hs')
-rw-r--r--joeyconfig.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/joeyconfig.hs b/joeyconfig.hs
index 39ddaffd..ae3e6ab1 100644
--- a/joeyconfig.hs
+++ b/joeyconfig.hs
@@ -466,11 +466,13 @@ keysafe = host "keysafe.joeyh.name" $ props
& Apt.serviceInstalledRunning "swapspace"
& Cron.runPropellor (Cron.Times "30 * * * *")
& Apt.installed ["openssh-server", "etckeeper", "sudo"]
- & Ssh.noPasswords
& User.hasSomePassword (User "root")
& User.accountFor (User "joey")
& User.hasSomePassword (User "joey")
& Sudo.enabledFor (User "joey")
+ & Ssh.randomHostKeys
+ & User "joey" `Ssh.authorizedKeysFrom` (User "joey", darkstar)
+ & Ssh.noPasswords
iabak :: Host
iabak = host "iabak.archiveteam.org" $ props