summaryrefslogtreecommitdiff
path: root/src/Propellor/Property
AgeCommit message (Collapse)Author
2015-12-05UncheckedProperty for cmdProperty et alJoey Hess
* Properties that run an arbitrary command, such as cmdProperty and scriptProperty are converted to use UncheckedProperty, since they cannot tell on their own if the command truely made a change or not. (API Change) Transition guide: - When GHC complains about an UncheckedProperty, add: `assume` MadeChange - Since these properties used to always return MadeChange, that change is always safe to make. - Or, if you know that the command should modifiy a file, use: `changesFile` filename * A few properties have had their Result improved, for example Apt.buldDep and Apt.autoRemove now check if a change was made or not.
2015-12-05Added UncheckedProperty type, along with unchecked to indicate a Property ↵Joey Hess
needs its result checked, and checkResult and changesFile to check for changes.
2015-11-26Added Propellor.Property.Fail2Ban.Joey Hess
2015-11-26shorten reference to locale manpageSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ad7c9338306094f2d8187107417dd9331cb8f8a0)
2015-11-26improve Haddock for Locale.selectedForSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ca016d391e2419856e1efc40cc977af6a99af7d6)
2015-11-26locale props use descriptive types & revertableSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit 6d10045ba74c1dc45e6aab4bae8b4757751c1920)
2015-11-26properties to select and generate localesSean Whitton
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit ee14ef80cf9ab761b07fbc40f549ad5c7c72f6cb)
2015-11-25make trivial since it updates the password each timeJoey Hess
2015-11-25Added Postfix.saslPasswdSet.Joey Hess
2015-11-25unused importJoey Hess
2015-11-24User.hasDesktopGroups changed to avoid trying to add the user to groups that ↵Joey Hess
don't exist. This is the same method user-setup uses.
2015-11-24haddock improvementsJoey Hess
2015-11-24Added User.hasDesktopGroups property.Joey Hess
Based on a property in spwhitton's config, but rewritten.
2015-11-24fixesJoey Hess
2015-11-24found this handy conversion of my blog post to propellor property in ↵Joey Hess
spwhitton's repo
2015-11-24refactorJoey Hess
2015-11-24fix indentJoey Hess
2015-11-24Git.repoConfigured and Git.repoAcceptsNonFFs propsSean Whitton
The latter is useful when setting up Git hosting using the Git.bareRepo property. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> (cherry picked from commit cf3b48217a78460758615b52849e2b717ec24de9)
2015-11-21DebianMirror: use a lensy approach to set values of a DebianMirrorFélix Sipma
(cherry picked from commit 359e449157f831bbd22a212d618b6762a58b47de)
2015-11-21DebianMirror: add DebianMirror typeFélix Sipma
(cherry picked from commit 82d949506dbadabff7d62de85a2f601b9d5755cc)
2015-11-20DebianMirror: add a [RsyncExtra] argumentFélix Sipma
(cherry picked from commit baff70140cbf3f6113439335b96f3016f261a6a0)
2015-11-20DebianMirror: debmirror --host argument should be a hostname, not an urlFélix Sipma
(cherry picked from commit f0e374b4a43db750868f1ca4ccc465cee5691748)
2015-11-17DiskImage creation automatically uses Chroot.noServices.Joey Hess
2015-11-17Added Chroot.noServices property.Joey Hess
2015-11-11rename for clarityJoey Hess
2015-11-11Add Propellor.Property.PropellorRepo.hasUrl, an explicit way to set the git ↵Joey Hess
repository url normally implicitly set when using --spin.
2015-11-01merge from concurrent-outputJoey Hess
2015-11-01take dkim out of test modeJoey Hess
2015-10-28propellor spinJoey Hess
2015-10-28have to flush concurrent output before printing result when chainingJoey Hess
2015-10-28concurrency docsJoey Hess
2015-10-27use execProcessConcurrent everywhereJoey Hess
Found a reasonable clean way to make Utility.Process use execProcessConcurrent, while still allowing copying updates to it from git-annex.
2015-10-27concurrent version of createProcessJoey Hess
Have not yet wired everything up to use this, that currently uses Utility.Process.
2015-10-27make Propellor.Message use lock to handle concurrent threads outputting messagesJoey Hess
Not yet handled: Output from concurrent programs.
2015-10-27use a shared global for the MessageHandleJoey Hess
2015-10-27Explicit Info/NoInfo for RevertableProperty (API change)Joey Hess
RevertableProperty used to be assumed to contain info, but this is now made explicit, with RevertableProperty HasInfo or RevertableProperty NoInfo. Transition guide: - If you define a RevertableProperty, expect some type check failures like: "Expecting one more argument to ‘RevertableProperty’". - Change it to "RevertableProperty NoInfo" - The compiler will then tell you if it needs "HasInfo" instead. - If you have code that uses the RevertableProperty constructor that fails to type check, use the more powerful <!> operator
2015-10-26Add File.isCopyOfPer Olofsson
Signed-off-by: Per Olofsson <pelle@dsv.su.se>
2015-10-24improve RevertableProperty combiningJoey Hess
* Various property combinators that combined a RevertableProperty with a non-revertable property used to yield a RevertableProperty. This was a bug, because the combined property could not be fully reverted in many cases. Fixed by making the combined property instead be a Property HasInfo. * combineWith now takes an addional parameter to control how revert actions are combined (API change).
2015-10-24Added Propellor.Property.Concurrent for concurrent properties.Joey Hess
Note that no output multiplexing is currently done.
2015-10-23commentsJoey Hess
2015-10-23Hostname.sane and Hostname.setTo can now safely be used as a property of a ↵Joey Hess
chroot, and won't affect the hostname of the host system.
2015-10-23allow specifying filesystem mount optionsJoey Hess
2015-10-23refactorJoey Hess
2015-10-23Changed how the operating system is provided to Chroot (API change).Joey Hess
* Where before debootstrapped and bootstrapped took a System parameter, the os property should now be added to the Chroot. * Follow-on change to Systemd.container, which now takes a System parameter. Two motivations for this change: 1. When using ChrootTarball, there may be no particular System that makes sense for the contents of the tarball, so don't force the user to specify one. 2. When creating a chroot for a disk image with the same properties as an existing Host, using hostProperties host to get them, this allows inheriting the os property from the host, and doesn't require it to be redundantly passed to Chroot.debootstrapped.
2015-10-23Add File.basedOnPer Olofsson
Signed-off-by: Per Olofsson <pelle@dsv.su.se>
2015-10-23propellor spinJoey Hess
2015-10-23HostName: Improve domain extraction code.Joey Hess
2015-10-23propellor spinJoey Hess
2015-10-23propellor spinJoey Hess
2015-10-23propellor spinJoey Hess