propellor spin

This commit is contained in:
Joey Hess 2015-02-10 20:56:57 -04:00
parent d08c98d8b3
commit 0119bf8531
Failed to extract signature
2 changed files with 7 additions and 2 deletions

View File

@ -150,7 +150,7 @@ gitServer hosts = propertyList "git.kitenet.net setup" $ props
`requires` Ssh.authorizedKeys "family" (Context "git.kitenet.net")
`requires` User.accountFor "family"
& Apt.installed ["git", "rsync", "gitweb"]
& Apt.installed ["kgb-client"]
& Apt.installed ["kgb-client", "kgb-bot"]
& Apt.installed ["git-annex"]
& File.hasPrivContentExposed "/etc/kgb-bot/kgb-client.conf" anyContext
& Git.daemonRunning "/srv/git"

View File

@ -161,7 +161,12 @@ keyImported' dest keytype user context = combineProperties desc
, installkey (SshPrivKey keytype user) (install writeFileProtected "")
]
where
desc = user ++ " has ssh key (" ++ fromKeyType keytype ++ ")"
desc = unwords $ catMaybes
[ Just user
, Just "has ssh key"
, dest
, Just $ "(" ++ fromKeyType keytype ++ ")"
]
installkey p a = withPrivData p context $ \getkey ->
property desc $ getkey a
install writer ext key = do