Releases: pyinfra-dev/pyinfra
Releases · pyinfra-dev/pyinfra
v1.3.5
- Add support for relative includes:
local.include('./relative_file.py') - Fix parsing of special times in
server.Crontabfact - Fix editing
special_timeinserver.crontaboperation - Fix printing of imported modules in group data files when using
debug-inventory - Use/respect
__all__if defined in group data files
v1.3.4
v1.3.3
v1.3.2
- Add
pacman_unpack_groupfact (@unai-ndz) - Support Pacman package groups properly in
packman.packagesoperation (@unai-ndz) - Fix only load git config if the repo directory exists in
git.configoperation - Fix global git config loading when files don't exist in
git_configfact - Fix deploys doc example operation (@makom)
- Fix (add quoting) download URLs containing shell characters in
files.downloadoperation - Fix checking for rsync in
@localconnector
v1.3.1
- Add
git_tracking_branchfact and reworkgit.worktreeoperation (@remybar) - Add
user_modearg tosystemd.daemon_reloadoperation (@smdnv) - Add
commentarg/support toserver.useroperation (@sprat) - Use
StrictUndefinedwhen rendering templates (@relaxdiego) - Allow numbers in
pacman_packagesfact - Remove restriction on group data types
- Improve support for
Pathobjects as operation arguments (@relaxdiego) - Improve error output when failing to start SFTP sessions (@relaxdiego)
- Fix readme doc link (@mrshu)
- Fix Docker tests and separate from main tests, don't run on PRs
v1.3
Theme of this release is improving error handling and end user experience. Highlights:
- Make most global arguments dynamic - support different
chdir,sudo, etc for different hosts within the same operation call - Rework line number ordering to support any nested function calls and/or imports
- Improve error handling for unexpected internal (pyinfra) and external (user code) errors
- Detect and error when an operation calls another using global arguments
- Properly fail when fact commands don't execute correctly vs. a given command not being present on the host, using
requires_commandfact attribute
Operation & fact updates:
- Add
git.worktreeoperation (@remybar) - Add
git.bare_repooperation (@stchris) - Add
user_modeargument tosystemd.serviceoperation (@jprltsnz) - Use
hostnamectlwhere available forserver.hostnameoperation - Use
uname -aforhostnamefact - Add
userfact
Other bits:
- Enable using
use_sudo_passwordwithoutsudo=True - Move testing & documentation processes to GitHub actions
- Run tests on Windows & MacOS
v1.2.1
v1.2
Lots of smaller bits in this release and massive improvement to the documentation.
Operation & fact updates:
- Deprecate
init.*operations, renamed to:systemd.service,upstart.service,launchd.service,bsdinit.service,sysvinit.service,sysvinit.enable,server.service - Add
systemd.daemon_reloadoperation - Add
files.rsyncoperation - Add
portanduserarguments to allssh.*operations - Add
apt_keysfact and use inapt.keyoperation - Add GPG facts:
gkg_key,gpg_keysandgpg_secret_keys - Add
additional_ipsinnetwork_devicesfact - Add
ipv4_addrsandipv6_addrsfacts to replaceipv[46]_addresses - Add
linux_gui&has_guifacts
Other bits:
- Add global
chdir,preserve_su_envandsu_shellarguments - Add
Config.REQUIRE_PACKAGESto check requirements befor execution - Add
host_before_connectandhost_connect_errorstate callback methods - Support multiple
--limitCLI arguments - Allow passing an integer in
files.replacereplacement lines (@vindarel) - Use
curlifwgetnot present inapt.keyoperation - Completely remove use of
use_default_on_errorin facts - Many updates/tweaks to documentation + theme
- Allow functions in/as group/host data (CLI)
- Implement/use Angolia docsearch on documentation
v1.1.2
- Add
port=22argument to thessh.keyscanoperation - Add
extra_install_argsargument to thepip.packagesoperation - Support uninstalling a requirements file in the
pip.packagesoperation - Use state in
files.replaceoperation, enabling noop support where appropriate - Add a warning when using
use_su_login - Fix parsing stat output when groups contain spaces (
file,directory,linkfacts) - Fix minimum gevent version (@alexandervdm)
v1.1.1
- Don't fail for user error facts when the user will be added earlier in the deploy
- Support
shasumcommand infiles.downloadoperation - Consider waiting systemd units to be running (@i-do-cpp)
- Improve regex for systemd units (support ones with
.) (@i-do-cpp) - Fix sudo passwords with special characters (@sysadmin75)
- Fix typo in host arg warning (@weakish)