All Versions
75
Latest Version
Avg Release Cycle
8 days
Latest Release
-

Changelog History
Page 1

  • v2.5.3 Changes

    • πŸ›  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 Changes

    • πŸ›  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 Changes

    • πŸ›  Fix bug in pre/post condition handling that would print non-fatal errors
  • v2.5 Changes

    βž• 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 Changes

    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
  • v2.3 Changes

    πŸš€ Relatively small quick release with two additions and a bunch of fixes.

    βž• Added:

    • βž• Add create_home argument to server.user operation
    • 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=True in files.put operation
    • 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
  • v2.2 Changes

    The main feature of 2.2 is the switch to using a DAG to generate operation order. This mostly replaces line-number ordering (still used to tie-break) and means hacks such as state.preserve_loop_order are no longer required!

    The second highlight feature is the inclusion of type stub files for operations that include all of the global arguments. Thank you to @StefanBRas for implementing this.

    Other changes:

    • 0️⃣ Use home directory fact for default in server.user operation (@yunzheng)
    • πŸ›  Fix matching replace as a whole line in files.line operation
    • πŸ›  Fix bug in mysql.privileges invalid argument requesting MysqlUserGrants fact
  • v2.1 Changes

    First 2.x point release! Major feature: nested operations (at last!).

    πŸš€ Based on the changes to operations in 2.x nested operations make it possible to generate & execute operations on the fly at execution time, rather than using the low-level connector API. This unlocks all kinds of complex deploys that were previously impossible or complex to implement. Let's look at an example:

    from pyinfra import logger
    from pyinfra.operations import python, server
    
    def callback():
        result = server.shell(commands=["echo output"])
        logger.info(f"Got result: {result.stdout}")
    
    python.call(
        name="Execute callback function",
        function=callback,
    )
    

    Other new stuff:

    • βž• Add host.reload_fact(...) - bypasses the fact cache to force reloading of fact data
    • βž• Add deb.DebArch fact
    • Add ssh_paramiko_connect_kwargs host data used in the @ssh connector

    πŸ›  Bugfixes:

    • πŸ›  Fix: Remove state/host arguments from apt.dist_upgrade operation (@pabloxio)
    • πŸ›  Fix files.put hashing local file that doesn't exist when assume_exists=True
    • πŸ›  Fix parsing of link targets in RHEL 6 systems
    • πŸ“¦ Prefer zypper over apt when both present in server.packages operation

    Internal changes:

    • πŸ›  Fix license link (@Lab-Brat)
    • βš™ Run black and isort across the codebase, now part of CI
  • v2.0.2 Changes

    • πŸ›  Fix for config.SUDO/etc handling for operation argument defaults
  • v2.0.1 Changes

    • Rewrite & fix/speedup systemd facts using systemctl show
    • πŸ‘Œ Support passing IO-like objects into files.template operation
    • πŸ‘Œ Support accept-new SSH config for StrictHostKeyChecking
    • πŸ›  Fix hashing of facts with non-keyword arguments
    • πŸ›  Fix connect to non-connected hosts before collecting facts
    • Fix config.REQUIRE_PYINFRA_VERSION & config.REQUIRE_PACKAGES handling
    • πŸ“„ Many little docs improvements