pyinfra v1.0 Release Notes

Release Date: 2020-07-11 // almost 4 years ago
  • ๐Ÿš€ The first 1.x release!

    ๐Ÿš€ This release deprecates a lot of old/legacy pyinfra code and brings fourth a new, stable API. So long as you see no warnings when executing pyinfra, upgrading should require no chanages.

    What's new:

    • โž• Add new global name argument to name operations (deprecate set as the first argument)
    • ๐Ÿ‘Œ Improve unexpected fact error handling, bad exit codes will be treated as errors unless the fact explicitly expects this could happen (system package managers for example)
    • ๐Ÿ”Š [CLI] write progress/user info/logs to stderr only
    • [API] Consistent ordering when add_op and add_deploy functions
    • [API] Return a dictionary of host -> OperationMeta when using add_op
    • Enable passing a list of modules to server.modprobe (@FooBarQuaxx)
    • ๐Ÿ‘Œ Support Path objects in files.[file|directory|link] operations
    • ๐Ÿ‘Œ Support shasum (MacOS) in sha1_file fact

    ๐Ÿ’ฅ Breaking changes:

    • ๐Ÿ—„ Deprecate using set as the first/name argument for operations
    • ๐Ÿ“‡ Rename files.* arguments (name -> path, destination -> dest)
    • Rename server.* arguments (name -> user|group|cron_name|key|path, filename -> src)
    • Rename mysql.* + postgresql.* arguments (name -> user|database|role)
    • ๐Ÿ“‡ Rename init.* arguments (name -> service)
    • ๐Ÿ“‡ Rename lxd.container argument name -> id
    • ๐Ÿ“‡ Rename git.repo argumenets source -> src & target -> dest
    • ๐Ÿ“‡ Rename iptables.chain argument name -> chain
    • ๐Ÿ“‡ Rename python.call argument func -> function
    • Rename size -> mask_bits inside network_devices fact
    • ๐Ÿ”„ Change default of interpolate_variables from True -> False
    • โœ‚ Remove deprecatedhosts/when/op global operation arguments
    • โฑ Rename reprecated Config.TIMEOUT -> Config.CONNECT_TIMEOUT
    • Remove deprecated use_ssh_user argument from git.repo operation
    • โœ‚ Remove deprecated python.execute operation
    • Remove deprecated Inventory.< __getitem__ > & Inventory.< __getattr__ > methods
    • Remove deprecated add_limited_op function
    • โœ‚ Remove deprecated legacy CLI support