updates
This commit is contained in:
parent
73fcd794e4
commit
6bde26780f
|
@ -84,6 +84,10 @@ installed ps = robustly $ check (isInstallable ps) go
|
||||||
where
|
where
|
||||||
go = runApt $ ["-y", "install"] ++ ps
|
go = runApt $ ["-y", "install"] ++ ps
|
||||||
|
|
||||||
|
-- | Minimal install of package, without recommends.
|
||||||
|
installedMin :: [Package] -> Property
|
||||||
|
installedMin ps = installed ("--no-install-recommends" : ps)
|
||||||
|
|
||||||
removed :: [Package] -> Property
|
removed :: [Package] -> Property
|
||||||
removed ps = check (or <$> isInstalled' ps) go
|
removed ps = check (or <$> isInstalled' ps) go
|
||||||
`describe` (unwords $ "apt removed":ps)
|
`describe` (unwords $ "apt removed":ps)
|
||||||
|
@ -100,7 +104,7 @@ buildDep ps = robustly go
|
||||||
-- in the specifed directory, with a dummy package also
|
-- in the specifed directory, with a dummy package also
|
||||||
-- installed so that autoRemove won't remove them.
|
-- installed so that autoRemove won't remove them.
|
||||||
buildDepIn :: FilePath -> Property
|
buildDepIn :: FilePath -> Property
|
||||||
buildDepIn dir = go `requires` installed ["devscripts"]
|
buildDepIn dir = go `requires` installedMin ["devscripts"]
|
||||||
where
|
where
|
||||||
go = cmdProperty' "sh" ["-c", "cd '" ++ dir ++ "' && mk-build-deps debian/control --install --remove"]
|
go = cmdProperty' "sh" ["-c", "cd '" ++ dir ++ "' && mk-build-deps debian/control --install --remove"]
|
||||||
noninteractiveEnv
|
noninteractiveEnv
|
||||||
|
|
6
TODO
6
TODO
|
@ -2,7 +2,6 @@
|
||||||
run it once for the whole. For example, may want to restart apache,
|
run it once for the whole. For example, may want to restart apache,
|
||||||
but only once despite many config changes being made to satisfy
|
but only once despite many config changes being made to satisfy
|
||||||
properties. onChange is a poor substitute.
|
properties. onChange is a poor substitute.
|
||||||
* I often seem to want to be able to combine Properties monadically.
|
|
||||||
* --spin needs 4 ssh connections when bootstrapping a new host
|
* --spin needs 4 ssh connections when bootstrapping a new host
|
||||||
that does not have the git repo yet. Should be possible to get that
|
that does not have the git repo yet. Should be possible to get that
|
||||||
down to 1.
|
down to 1.
|
||||||
|
@ -12,7 +11,4 @@
|
||||||
* Display of docker container properties is a bit wonky. It always
|
* Display of docker container properties is a bit wonky. It always
|
||||||
says they are unchanged even when they changed and triggered a
|
says they are unchanged even when they changed and triggered a
|
||||||
reprovision.
|
reprovision.
|
||||||
* Nothing brings up docker containers on boot. Although the next time
|
* Should properties be a tree rather than a list?
|
||||||
propellor runs it will notice if a container is done, and fix it.
|
|
||||||
Should propellor be run on boot? Or should provisioning a container
|
|
||||||
install a systemd service file to start it?
|
|
||||||
|
|
Loading…
Reference in New Issue