summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-04-03add Localdir.removedSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2019-04-03add Mount.partialBindMountsOf functionSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2019-04-03rename Propellor.Property.{PropellorRepo -> Localdir}Sean Whitton
This is to accommodate a new property in that module which is about /usr/local/propellor, but not only about the git repo there. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2019-04-01Added Utility.FileMode to the modules exported by Propellor.UtilitiesJoey Hess
Since File.mode uses FileMode, it seems it ought to be exported by propellor somewhere. I don't want to make propellor Property modules themselves export core data types though, so this is a compromise of dubious utility.
2019-04-01sbuild: break Apt.stdSourcesList out of Sbuilt.builtSean Whitton
Apt.stdSourcesList supports only Debian, so having it inside Sbuilt.built was blocking using Sbuild.built with non-Debian schroots. Note that we cannot break out the installation of eatmydata and ccache, because Sbuild.built assumes that those are available in the schroot config files that it writes out. This is a minimal fix. If it becomes clear that there are properties which would be wanted in every Buntish schroot, say, we might replace Sbuild.osDebianStandard with an Sbuild.standard property which uses pickOS to install the right set of properties. Reported-by: David Bremner <david@tethera.net> Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2019-03-25propellor spinJoey Hess
2019-02-18updateJoey Hess
2019-01-20fix Libvirt.hs haddock buildSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2019-01-20Revert "propellor: fix haddock markup in Propellor.Property.Libvirt"Joey Hess
This reverts commit 278ca887cc734ea60af429d545a6da446a0cc6aa.
2019-01-20propellor: fix haddock markup in Propellor.Property.LibvirtSergei Trofimovich
'cabal haddock' fails as: src/Propellor/Property/Libvirt.hs:35:1: error: parse error (possibly incorrect indentation or mismatched brackets) Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2019-01-18Fix --spin crash when ~/.ssh/ directory did not already exist.Joey Hess
2019-01-18Merge branch 'joeyconfig'Joey Hess
2019-01-18Avoid exposing the constructor of OuterMetaTypesWitness, to avoid the kind ↵Joey Hess
of mistake that led to the withOS bug.
2019-01-18avoid unnecessarily using withOS in the implementation of pickOSJoey Hess
2019-01-18Merge branch 'master' into joeyconfigJoey Hess
2019-01-18fix withOS type level bugJoey Hess
withOS had a type level bug that allowed ensureProperty to be used inside it with a Property that does not match the type of the withOS itself. Propellor.Property.Cron.runPropellor is a Property DebianLike; it was incorrectly a Property UnixLike before and that wrong type was hidden by the withOS bug. This commit was sponsored by Jack Hill on Patreon.
2018-12-30Merged Utility changes from git-annexJoey Hess
Last done in May 2017..
2018-12-30Merge branch 'master' into joeyconfigJoey Hess
2018-12-30stop importing deprecated Network.BSDJoey Hess
Luckily only the HostName type is needed, which Network.Socket still exports
2018-12-30fix bogus ghc 8.6.3 build warningJoey Hess
ghc warned that the guard did not cover all values of h, but they clearly do, and when rewritten as a case statement the warning goes away Probably a ghc bug, but I kind of prefer the case statement over the guards anyway.
2018-12-30Fix build with ghc 8.6.3Joey Hess
Ghc started complaining that the SingI constraints needs UndecidableInstances. I'm not clear why, when it used to work without that extension. UndecidableInstances were already used in MetaTypes..
2018-12-12propellor spinJoey Hess
2018-12-11updateJoey Hess
2018-12-10propellor spinJoey Hess
2018-12-04libghc-stm-dev package won't be in new versions of debianJoey Hess
In Bootstrap, still try to install the package to support bootstrapping to old systems. If it's not available the bootstrapping will still succeed. The added apt-cache check is only to avoid apt complaining when asked to install a not available package. In debian/control, depend on ghc that includes stm, although propellor still supports being used with older versions of ghc Of course this control file is not being used for the package in debian any longer afaik, so something else will be done there.
2018-12-04remove obsolete stm packageJoey Hess
2018-12-01Merge branch 'joeyconfig'Joey Hess
2018-11-16propellor spinJoey Hess
2018-11-11Merge remote-tracking branch 'spwhitton/libvirt'Joey Hess
2018-11-11method for enabling spamd has changed in testing/unstableJoey Hess
2018-11-11fix unused import warningJoey Hess
Propellor.Base re-exports Data.Monoid.
2018-11-10avoid passing an empty arg when the OS variant is unknown, tooSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2018-11-10fix generated virt-install(1) call when NoAutoStartSean Whitton
2018-11-10Libvirt.defined: use DiskImage.imageChrootNotPresentSean Whitton
2018-11-10add DiskImage.imageChrootNotPresentSean Whitton
2018-11-10define the VM without using a shell scriptSean Whitton
2018-11-10Libvirt.defaultNetworkAutostarted additionally starts the networkSean Whitton
2018-11-10rewrite code to start the VM to not use a shell scriptSean Whitton
2018-11-10refactor to reduce parenthesesSean Whitton
Suggested-by: Joey Hess <id@joeyh.name>
2018-11-10add virshGetColumnsSean Whitton
2018-11-10Merge branch 'joeyconfig'Joey Hess
2018-11-10User.hasDesktopGroups uses combinePropertiesSean Whitton
Propellor's output should not include a line for every single group the user is added to, but a single line indicating that they have been added to the desktop groups. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
2018-11-09whitespace fixesSean Whitton
2018-11-09note that --os-variant is optionalSean Whitton
2018-11-09specify many more --os-variant valuesSean Whitton
2018-11-09stop passing --os-type to virt-installSean Whitton
This argument is not documented in recent versions of the virt-install(1) manpage, and testing reveals that at least along with --os-variant=debian9, additionally passing --os-type=Linux makes no difference to the generated XML. It makes sense that --os-variant would be sufficient, since it has a superset of the semantic content of --os-type.
2018-11-09kvmDefined -> definedSean Whitton
The VM could be raw QEMU without KVM, and we might later extend the property to be able to Xen domains too.
2018-11-09comment out the QCow2 constructor until that's implementedSean Whitton
2018-11-09newtypes for NumVCPUs and MiBMemorySean Whitton
Less chance of requesting 2048 CPU cores and 2MiB of memory. Suggested-by: Joey Hess <id@joeyh.name>
2018-11-05libvirt: fix unconditional autostartSean Whitton