pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.93k stars 383 forks source link

Read group and user information using getent to respect nsswitch.conf #1221

Open bauen1 opened 1 month ago

bauen1 commented 1 month ago

This will fix #1008 .

Additionally I messed around with adding a Group fact, to get more useful information about e.g. members of a group.

Draft, since I need to fix the user stuff and unit tests, this is just here so I don't forget about it.