propellor spin

This commit is contained in:
Joey Hess 2014-12-21 21:14:11 -04:00
parent 9444326c87
commit d194765e10
Failed to extract signature
4 changed files with 13 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
propellor (1.2.2) UNRELEASED; urgency=medium
* docker, chroot: Avoid ensureProperty warning about Info propigation,
which is handled properly for there.
-- Joey Hess <id@joeyh.name> Sun, 21 Dec 2014 21:11:45 -0400
propellor (1.2.1) unstable; urgency=medium propellor (1.2.1) unstable; urgency=medium
* Added CryptPassword to PrivDataField, for password hashes as produced * Added CryptPassword to PrivDataField, for password hashes as produced

View File

@ -4,7 +4,9 @@ module Propellor.Engine (
mainProperties, mainProperties,
runPropellor, runPropellor,
ensureProperty, ensureProperty,
ensureProperty',
ensureProperties, ensureProperties,
ensurePropertiesWith,
fromHost, fromHost,
onlyProcess, onlyProcess,
processChainOutput, processChainOutput,
@ -73,6 +75,7 @@ ensureProperty p = do
warningMessage $ "ensureProperty called on " ++ show p ++ "; will not propigate its info: " ++ show (getInfo p) warningMessage $ "ensureProperty called on " ++ show p ++ "; will not propigate its info: " ++ show (getInfo p)
ensureProperty' p ensureProperty' p
-- | ensureProperty without the warning message.
ensureProperty' :: Property -> Propellor Result ensureProperty' :: Property -> Propellor Result
ensureProperty' = catchPropellor . propertySatisfy ensureProperty' = catchPropellor . propertySatisfy

View File

@ -137,7 +137,7 @@ chain hostlist (ChrootChain hn loc systemdonly onconsole) =
changeWorkingDirectory localdir changeWorkingDirectory localdir
when onconsole forceConsole when onconsole forceConsole
onlyProcess (provisioningLock loc) $ do onlyProcess (provisioningLock loc) $ do
r <- runPropellor h $ ensureProperties $ r <- runPropellor h $ ensurePropertiesWith ensureProperty' $
if systemdonly if systemdonly
then [Systemd.installed] then [Systemd.installed]
else hostProperties h else hostProperties h

View File

@ -456,7 +456,8 @@ chain hostlist hn s = case toContainerId s of
go cid h = do go cid h = do
changeWorkingDirectory localdir changeWorkingDirectory localdir
onlyProcess (provisioningLock cid) $ do onlyProcess (provisioningLock cid) $ do
r <- runPropellor h $ ensureProperties $ hostProperties h r <- runPropellor h $ ensurePropertiesWith ensureProperty' $
hostProperties h
putStrLn $ "\n" ++ show r putStrLn $ "\n" ++ show r
stopContainer :: ContainerId -> IO Bool stopContainer :: ContainerId -> IO Bool