From f5ad1f726feed3d4b8d20588f96d04bdfea06c1c Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Sat, 31 Jul 2021 12:37:24 +0100 Subject: [PATCH] Add WIP changelog for v1.5.dev0! --- CHANGELOG.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d53a6d98..ec5128d93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,42 @@ +# v1.5.0.dev0 + +This release includes a huge number of improvements, major highlights: + +**Automatic sudo password prompting** - at last! pyinfra can now detect when a sudo password is required and will prompt the user. + +**Global config object** - there is now a `pyinfra.config` object that should be used to set config variables: + +```py +from pyinfra import config +config.SUDO = True +``` + +This replaces the old style of setting `SUDO = True` at the top of files which was extracted via the AST. This new object means config variables can be set to anything (including the results of functions) and work across multiple deploy files. + +Operation & fact updates: + ++ Add `openrc.service` operation ++ Add `openrc.OpenrcStatus` & `openrc.OpenrcEnabled` facts ++ Add last login time to `server.Users` fact (@sysadmin75) ++ Fetch held deb package versions in `deb.DebPackages` fact (@GerardoGR) ++ Add `force`, `force_backup` and `force_backup_dir` arguments to `files.files`, `files.directory` & `files.link` operations ++ Add resource and SSL arguments to `mysql.user` operation ++ Add `with_grant_option` argument to `mysql.privileges` operation + +Connector updates: + ++ Transfer ownership of files uploaded with su/sudo (@benridley) ++ Add `ssh_forward_agent` group data variable overriding SSH config + +Other bits: + ++ Add `doas` & `doas_user` global arugments ++ Use host data for global arguments (`host.data.sudo`, etc) ++ Add `--data key=value` CLI flag ++ Propagate return value from `@deploy` decorator (@karlicoss) ++ Large expansion of tested idempotent operations + + # v1.4.11 + Fix removal of askpass file in `server.reboot` operation