pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Add `macos` & `linux` modules

Open Fizzadar opened this issue 1 year ago • 2 comments

Move server.user -> linux.user and add macos.user (using sysadminctl). Then have server.user behave like server.packages and similar where we select [linux|macos|windows].user according to the remote OS.

Fizzadar avatar Feb 27 '23 12:02 Fizzadar

makes sense

v3ss0n avatar Feb 27 '23 18:02 v3ss0n

Good idea. Wouldn't want this to turn into a rabbithole, but would be nice to have a variable somewhere that tells you which platform you're on, so you can branch inside the scripts.

Easy way for linux: uname

gnat avatar Mar 02 '23 18:03 gnat