propellor spin
This commit is contained in:
parent
ecc275cfeb
commit
dd32a63a07
|
@ -44,6 +44,8 @@ ensureProperty = catchPropellor . propertySatisfy
|
||||||
-- For example, `fromHost hosts "otherhost" getSshPubKey`
|
-- For example, `fromHost hosts "otherhost" getSshPubKey`
|
||||||
fromHost :: [Host] -> HostName -> Propellor a -> Propellor (Maybe a)
|
fromHost :: [Host] -> HostName -> Propellor a -> Propellor (Maybe a)
|
||||||
fromHost l hn getter = case findHost l hn of
|
fromHost l hn getter = case findHost l hn of
|
||||||
Nothing -> return Nothing
|
Nothing -> do
|
||||||
|
liftIO $ print "fromHost found Nothing"
|
||||||
|
return Nothing
|
||||||
Just h -> liftIO $ Just <$>
|
Just h -> liftIO $ Just <$>
|
||||||
runReaderT (runWithHost getter) h
|
runReaderT (runWithHost getter) h
|
||||||
|
|
|
@ -148,8 +148,8 @@ knownHost hosts hn user = property desc $
|
||||||
, f `File.containsLine` (hn ++ " " ++ k)
|
, f `File.containsLine` (hn ++ " " ++ k)
|
||||||
, File.ownerGroup f user user
|
, File.ownerGroup f user user
|
||||||
]
|
]
|
||||||
go _ = do
|
go v = do
|
||||||
warningMessage $ "no configred sshPubKey for " ++ hn
|
warningMessage $ "no configred sshPubKey for " ++ hn ++ " " ++ show v
|
||||||
return FailedChange
|
return FailedChange
|
||||||
|
|
||||||
-- | Makes a user have authorized_keys from the PrivData
|
-- | Makes a user have authorized_keys from the PrivData
|
||||||
|
|
Loading…
Reference in New Issue