Skip to content

Releases: pyinfra-dev/pyinfra

v2.8

09 Oct 19:54
689f3f6
Compare
Choose a tag to compare

Added:

  • Add device and fs_type arguments to server.mount operation (@chriskingio)
  • Add args argument to server.script_template operation (@chriskingio)

Fixed:

  • Support FreeBSD in server.user & server.group operations (@wowi42)
  • Add missing py.typed flag to package
  • Fix lookup of systemd units containing . in the name (@cawo-odoo)
  • Strip newlines off public keys read from disk (@sysadmin75)
  • Properly escape database names in mysql.database operation (@tissieres)

v2.7

15 May 21:07
6eca1a5
Compare
Choose a tag to compare

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.packages operation (@wowi42)
  • Add server.locale operation and server.Locales fact (@maisim)
  • Add ensure_newline keyword argument to files.line (@yunzheng)
  • Add args argument to server.script operation
  • Add make put_file work with doas (@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.users operation (@minusf)
  • Fix fact hash for short facts where the backing fact takes arguments

v2.6.2

29 Jan 21:11
e10bdc8
Compare
Choose a tag to compare
  • Add support for classic confinment in snap.packages operation (@pabloxio)
  • Support dictionaries for Terraform connector inventory
  • Upgrade to distro>1.6 and remove patch hack
  • Fix files.Md5File fact for BSD style output (@ScottKevill)
  • Fix handling of protocol in iptables.rule operation (@sysadmin75)
  • Fix a large number of documentation issues
  • Add docstrings to Host methods
  • Cleanup duplicate code (@minusf)
  • Refactor has files facts (@ScottKevill)

v2.6.1

31 Dec 09:43
fa23aba
Compare
Choose a tag to compare
  • Fix reuse of temporary file names in server.script operation (@link2xt)
  • Fix retry handling on SFTP errors

v2.6

19 Dec 07:44
07a1d5a
Compare
Choose a tag to compare

Added:

  • Use SSH connector parameters with files.rsync operation (@StevenKGER)
  • Add auto_remove arguments to apt.upgrade operation (@mcataford)
  • Make it possible to call any function/op/deploy from the CLI

Fixed:

  • Fix handling of ALL/GRANT OPTION permissions in mysql.privileges operation (@gchazot)
  • Fix mysql.load operation with spaces in filenames (@gchazot)
  • Fix fact apk.ApkPackages for packages with numbers in the name (@dchauviere)
  • Fix fact openrc.OpenrcStatus for services with start times (@dchauviere)
  • Fix files.put for files containing spaces in local connector (@uggedal)
  • Fix performance of fact phase when calling functions/operations directly in CLI

v2.5.3

09 Nov 19:31
63e8d96
Compare
Choose a tag to compare
  • Fix handling of facts with no arguments or with global arguments
  • Fix mutable default breaking Host.loop position tracking
  • Cleanup exception handling within operation code

v2.5.2

03 Nov 21:13
6895634
Compare
Choose a tag to compare
  • Fix/make safer check for sysvinit in server.service operation
  • Fix parsing of sticky/setgid/setuid permission bits in files.* facts
  • Respect TMPDIR when 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

24 Oct 19:48
a413fcc
Compare
Choose a tag to compare
  • Fix bug in pre/post condition handling that would print non-fatal errors

v2.5

24 Oct 16:27
f2514e2
Compare
Choose a tag to compare

Added:

  • Add selinux.boolean, selinux.file_context, selinux.file_context_mapping & selinux.port operations (@morrison12)
  • Add selinux.SEBoolean, selinux.FileContextMapping, selinux.SEPorts, selinux.SEPort facts (@morrison12)
  • Add snap.package operation & snap.SnapPackage, snap.SnapPackages facts (@pabloxio)
  • Add beta files.block operation implementation (@morrison12)

Fixed:

  • Include all systemd units in systemd.SystemdStatus fact (@mariusmuja)
  • Handle installed RPM packages in rpm.RpmPackage fact (@mariusmuja)
  • Fix host loop cycle errors with new host.loop method
  • Always use ISO format date in server.Date fact, 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-latest GitHub runner (@morrison12)
  • Fix documentation URL (@blaisep)

v2.4

13 Aug 17:25
87fb7a0
Compare
Choose a tag to compare

Delayed getting this out, lots of little improvements.

Added:

  • Add server.user_authorized_keys operation
  • Add global _continue_on_error argument
  • Add dir_mode argument to files.sync operation (@filips123)
  • Copy local permissions when mode=True in files.put operation
  • Add headers and insecure arguments to files.download operation

Fixed:

  • Get facts with host & state context (@jaysoffian)
  • Fix short facts with arguments (@jaysoffian)
  • Fix hang on launch of container in lxd.container operation (@zachwaite)
  • Run operations with host context
  • Fix idempotency with uploads to a directory in files.put operation

Other changes:

  • Fix multiple doc typos (@timgates42)
  • Fix variable typo (@bouke-sf)
  • Fix CLI shell autocomplete doc (@jaysoffian)
  • Implement idempotency in git.bare_repo operation
  • Add typing to fact classes
  • Start testing files operations with pathlib objects