Mercurial > code > home > repos > infra
diff users.py @ 3:61945df2a392
updates to work on recent raspbian installs
author | drewp@bigasterisk.com |
---|---|
date | Sun, 07 Nov 2021 15:42:37 -0800 |
parents | 1550a6db59b3 |
children | 68eeca50ae7f |
line wrap: on
line diff
--- a/users.py Thu Nov 04 18:26:04 2021 -0700 +++ b/users.py Sun Nov 07 15:42:37 2021 -0800 @@ -2,7 +2,7 @@ from pyinfra.operations import server from pyinfra.facts.server import LinuxDistribution -is_pi = host.get_fact(LinuxDistribution)['name'] == 'Debian' +is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] # raspbian took 1000 for 'pi' group, but drewp is rarely used on pi # setups so hopefully it won't matter much that drew group has a