Skip to content

Commit f5ad1f7

Browse files
committed
Add WIP changelog for v1.5.dev0!
1 parent e2ef6a7 commit f5ad1f7

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

CHANGELOG.md

+39
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
# v1.5.0.dev0
2+
3+
This release includes a huge number of improvements, major highlights:
4+
5+
**Automatic sudo password prompting** - at last! pyinfra can now detect when a sudo password is required and will prompt the user.
6+
7+
**Global config object** - there is now a `pyinfra.config` object that should be used to set config variables:
8+
9+
```py
10+
from pyinfra import config
11+
config.SUDO = True
12+
```
13+
14+
This replaces the old style of setting `SUDO = True` at the top of files which was extracted via the AST. This new object means config variables can be set to anything (including the results of functions) and work across multiple deploy files.
15+
16+
Operation & fact updates:
17+
18+
+ Add `openrc.service` operation
19+
+ Add `openrc.OpenrcStatus` & `openrc.OpenrcEnabled` facts
20+
+ Add last login time to `server.Users` fact (@sysadmin75)
21+
+ Fetch held deb package versions in `deb.DebPackages` fact (@GerardoGR)
22+
+ Add `force`, `force_backup` and `force_backup_dir` arguments to `files.files`, `files.directory` & `files.link` operations
23+
+ Add resource and SSL arguments to `mysql.user` operation
24+
+ Add `with_grant_option` argument to `mysql.privileges` operation
25+
26+
Connector updates:
27+
28+
+ Transfer ownership of files uploaded with su/sudo (@benridley)
29+
+ Add `ssh_forward_agent` group data variable overriding SSH config
30+
31+
Other bits:
32+
33+
+ Add `doas` & `doas_user` global arugments
34+
+ Use host data for global arguments (`host.data.sudo`, etc)
35+
+ Add `--data key=value` CLI flag
36+
+ Propagate return value from `@deploy` decorator (@karlicoss)
37+
+ Large expansion of tested idempotent operations
38+
39+
140
# v1.4.11
241

342
+ Fix removal of askpass file in `server.reboot` operation

0 commit comments

Comments
 (0)