propellor spin
This commit is contained in:
parent
d08c98d8b3
commit
0119bf8531
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue