Releases: pyinfra-dev/pyinfra
Releases · pyinfra-dev/pyinfra
v2.7
Been a while since a release, so there's a bunch of great stuff in thise one!
Added:
- Add experimental support for importing inventories from Python modules
- Add
caro.packagesoperation (@wowi42) - Add
server.localeoperation andserver.Localesfact (@maisim) - Add
ensure_newlinekeyword argument tofiles.line(@yunzheng) - Add
argsargument toserver.scriptoperation - Add make
put_filework withdoas(@minusf) - Handle adding git config key-values with multiple lines (@gchazot)
Fixed:
- Add Ubuntu latest (22.04) to CI tests (@gchazot)
- Fix codecov workflow (@ioO)
- Escape & character during sed replacement during
line.replace(@sysadmin75) - Fix last login time in
server.usersoperation (@minusf) - Fix fact hash for short facts where the backing fact takes arguments
v2.6.2
- Add support for classic confinment in
snap.packagesoperation (@pabloxio) - Support dictionaries for Terraform connector inventory
- Upgrade to
distro>1.6and remove patch hack - Fix
files.Md5Filefact for BSD style output (@ScottKevill) - Fix handling of
protocoliniptables.ruleoperation (@sysadmin75) - Fix a large number of documentation issues
- Add docstrings to
Hostmethods - Cleanup duplicate code (@minusf)
- Refactor has files facts (@ScottKevill)
v2.6.1
v2.6
Added:
- Use SSH connector parameters with
files.rsyncoperation (@StevenKGER) - Add
auto_removearguments toapt.upgradeoperation (@mcataford) - Make it possible to call any function/op/deploy from the CLI
Fixed:
- Fix handling of ALL/GRANT OPTION permissions in
mysql.privilegesoperation (@gchazot) - Fix
mysql.loadoperation with spaces in filenames (@gchazot) - Fix fact
apk.ApkPackagesfor packages with numbers in the name (@dchauviere) - Fix fact
openrc.OpenrcStatusfor services with start times (@dchauviere) - Fix
files.putfor files containing spaces in local connector (@uggedal) - Fix performance of fact phase when calling functions/operations directly in CLI
v2.5.3
v2.5.2
- Fix/make safer check for sysvinit in
server.serviceoperation - Fix parsing of sticky/setgid/setuid permission bits in
files.*facts - Respect
TMPDIRwhen asking for sudo password (@jaysoffian) - Fix old windows fact names (@simon04)
- Fix consistency of facts called in vs. out of operation context
- Fix a bunch of pylint issues (@marksmayo)
- Fix docstrings on
python.*operations
v2.5.1
v2.5
Added:
- Add
selinux.boolean,selinux.file_context,selinux.file_context_mapping&selinux.portoperations (@morrison12) - Add
selinux.SEBoolean,selinux.FileContextMapping,selinux.SEPorts,selinux.SEPortfacts (@morrison12) - Add
snap.packageoperation &snap.SnapPackage,snap.SnapPackagesfacts (@pabloxio) - Add beta
files.blockoperation implementation (@morrison12)
Fixed:
- Include all systemd units in
systemd.SystemdStatusfact (@mariusmuja) - Handle installed RPM packages in
rpm.RpmPackagefact (@mariusmuja) - Fix host loop cycle errors with new
host.loopmethod - Always use ISO format date in
server.Datefact, should resolve any outstanding parse errors
Other changes:
- Fix a whole load of documentation typos (@simonw)
- Generic typing stub for operation decorator (@mariusmuja)
- First pass at type annotations for the API (@lowercase00)
- Add type checking CI job
- Decomposition of many internal API functions & cleanup (@lowercase00)
- Use
macos-latestGitHub runner (@morrison12) - Fix documentation URL (@blaisep)
v2.4
Delayed getting this out, lots of little improvements.
Added:
- Add
server.user_authorized_keysoperation - Add global
_continue_on_errorargument - Add
dir_modeargument tofiles.syncoperation (@filips123) - Copy local permissions when
mode=Trueinfiles.putoperation - Add
headersandinsecurearguments tofiles.downloadoperation
Fixed:
- Get facts with host & state context (@jaysoffian)
- Fix short facts with arguments (@jaysoffian)
- Fix hang on launch of container in
lxd.containeroperation (@zachwaite) - Run operations with host context
- Fix idempotency with uploads to a directory in
files.putoperation
Other changes:
- Fix multiple doc typos (@timgates42)
- Fix variable typo (@bouke-sf)
- Fix CLI shell autocomplete doc (@jaysoffian)
- Implement idempotency in
git.bare_repooperation - Add typing to fact classes
- Start testing files operations with
pathlibobjects
v2.3
Relatively small quick release with two additions and a bunch of fixes.
Added:
- Add
create_homeargument toserver.useroperation - Separate no change/change in proposed changes & results output
- Support IO-like objects as
stdin
Fixed:
- Fix short fact gathering
- Fix handling of IO-like objects when
assume_exists=Trueinfiles.putoperation - Don't fail to ensure user home dir that already exists as a link
- Rename file utils to avoid clashes/confusion with operations
Internal:
- Check operation type stubs during CI