propellor spin
This commit is contained in:
parent
808392f21e
commit
2172ba82ff
|
@ -19,6 +19,8 @@ getProperties :: HostName -> [Property]
|
|||
getProperties hostname@"clam.kitenet.net" =
|
||||
[ cleanCloudAtCost hostname
|
||||
, standardSystem Apt.Unstable
|
||||
, hasPassword "root"
|
||||
, hasPassword "joey"
|
||||
-- Clam is a tor bridge.
|
||||
, Tor.isBridge
|
||||
, Apt.installed ["docker.io"]
|
||||
|
|
|
@ -22,8 +22,8 @@ nuked user _ = check (isJust <$> homedir user) $ cmdProperty "userdel"
|
|||
]
|
||||
`describe` ("nuked user " ++ user)
|
||||
|
||||
setPassword :: UserName -> Property
|
||||
setPassword user = Property (user ++ " password set") $
|
||||
hasPassword :: UserName -> Property
|
||||
hasPassword user = Property (user ++ " has password") $
|
||||
withPrivData (Password user) $ \password -> makeChange $
|
||||
withHandle StdinHandle createProcessSuccess
|
||||
(proc "chpasswd" []) $ \h -> do
|
||||
|
|
Loading…
Reference in New Issue