propellor spin
This commit is contained in:
parent
8dd5cb92f8
commit
b9d2fcc432
|
@ -8,6 +8,7 @@ import System.FilePath
|
|||
import System.IO
|
||||
import System.Directory
|
||||
import Data.Maybe
|
||||
import Data.List
|
||||
import Control.Monad
|
||||
import "mtl" Control.Monad.Reader
|
||||
|
||||
|
@ -30,9 +31,12 @@ withPrivData field a = maybe missing a =<< liftIO (getPrivData field)
|
|||
where
|
||||
missing = do
|
||||
host <- getHostName
|
||||
let host' = if ".docker" `isSuffixOf` host
|
||||
then "$parent_host"
|
||||
else host
|
||||
liftIO $ do
|
||||
warningMessage $ "Missing privdata " ++ show field
|
||||
putStrLn $ "Fix this by running: propellor --set "++host++" '" ++ show field ++ "'"
|
||||
putStrLn $ "Fix this by running: propellor --set "++host'++" '" ++ show field ++ "'"
|
||||
return FailedChange
|
||||
|
||||
getPrivData :: PrivDataField -> IO (Maybe String)
|
||||
|
|
|
@ -1,25 +1,33 @@
|
|||
-----BEGIN PGP MESSAGE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
hQIMA7ODiaEXBlRZARAAuRttWmrr3tFgQnbnaQpWxiAQToL94e0SctFiYqiEGRNa
|
||||
D63/ZaBhBkvKSx57+SyOloqfBaeWM63vd4Yacocypl2zOjC4aEN7/MKyQRl+xhmk
|
||||
EwQ4kFfJ3dmYrgXt7NAdIarjHsK5/Bv7PGVIrcwD3zqV+FUyuxt2L2ETG61kYo+m
|
||||
xNWl1NCvHDZ1QOfvw4ldBo7+LO2odzoZAxBF0ZgQFqo/r/6RZaqFNJRLdVTLERTq
|
||||
E4igjtgfq6blrpyeupKpFu6oy8/7WeBXthnyoduftk+aBTkXWzb+i30zIzNNsc4+
|
||||
GE68a5tM0XE8nGwKp4yz0AZHhEYzv+BZXI7HQMAZ+m0srVn637SDHeAgOBU8NjrA
|
||||
SbZt0ubQ28Qaux7C7awLJ5SjvlQyLT61jLaN6SMcpeLmgkjRVN+eiVOE/qmXzhHv
|
||||
AobUwJgBOktiN6+WtRcxq7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rAcIn7JVu2acslVpRlv1B0ebaWbUMQDxq+rb+mivzUil1ZpJu24
|
||||
1RTlF9Sk9xwUqDoaJBUUbWDHc1wrLFzI7/P5MAzBuuGwE5BKlq0cBjzMZpZqUB4x
|
||||
WCkOrz0aOwXkLqEgbHFkHVu9VuLVrDeY59DIKqEK35t9XiY99FASIJstOAly+UpX
|
||||
z53lhJKM9oJSrK6FpHu425FpbuJ+kjXWI2bPDRRB2UB8wEP64IzoRlXX34QMltdH
|
||||
z5NpteD80V1zWKsTHibaJ3wBEpH3iHz7ujnwV4i63uR59YeHY9JWCZ06/t8QSvvh
|
||||
kYZrBTSEyuxO4FBNb36Tee+0gQO+EhAKilFFf5J91Z3rmTL22T0k/2xwNCMfBeTh
|
||||
Nvc2jpzM5s5dVDbNnfCVvrj3rvBCYRIBizkjhgJK/l7/FcEYqsUZH4bl1BggOwYY
|
||||
pSDXzuunt+nsWZa+xfbmS5aKUgsOdnDlu3I7fv3KKHso//7oJJbg5HefAtmEvIvu
|
||||
Us7SlPjMpx82RUQnJWgmzdML9HfnXFGy+9RRxnFZh4rw72SEzDUc4cOV1KKNeuvf
|
||||
Q0vxgK8H
|
||||
=mBZA
|
||||
-----END PGP MESSAGE-----
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN PGP MESSAGE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
hQIMA7ODiaEXBlRZAQ//ZDYso8hN4QDNWdv1dCyC38tEVYeuPtUu2/RuGOkzKInz
|
||||
BlX/aTYtuBHWjpXFWaEVJsvihhvQnJc7nvzguM6wcXPPRBgGMO3/pO9X+81YCmVQ
|
||||
smqiVyCPaWHxo0X2nmGCfAxRgap/ZpbVyHbS+V0Vh+vIsDYOjz9vXupXrknEocde
|
||||
6BnxgxKbqIvJUntRlhYhsi0fYkvMSzamlB2Gy7k5iZhwmu95NmTiYSQVPeuwNyYJ
|
||||
uLlfvSBAFFylg8q50svT0mI4IB2ta7/0V+F5zwSMzlwJ5Jlg7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||||
d26hCheOATEQiAr/AdATxQPeAhiK1Fc5b1AmNMDsqdC7tvqEeaFeBktIfxVNgFiI
|
||||
rC1Ub6M=
|
||||
=t6f6
|
||||
-----END PGP MESSAGE-----
|
Loading…
Reference in New Issue