comparison users.py @ 69:659e4b228909

new host 'pipe'
author drewp@bigasterisk.com
date Sat, 11 Jun 2022 22:51:20 -0700
parents 68eeca50ae7f
children f0e59adf7b91
comparison
equal deleted inserted replaced
68:4a28a6b26af4 69:659e4b228909
5 is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] 5 is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux']
6 6
7 # raspbian took 1000 for 'pi' group, but drewp is rarely used on pi 7 # raspbian took 1000 for 'pi' group, but drewp is rarely used on pi
8 # setups so hopefully it won't matter much that drew group has a 8 # setups so hopefully it won't matter much that drew group has a
9 # different id. 9 # different id.
10 drewp_gid = 1000 if not is_pi else 501 10 drewp_gid = 1000 if (not is_pi and host.name != 'pipe') else 501
11 drewp_uid = 501 11 drewp_uid = 501
12 drewp_groups = [ 12 drewp_groups = [
13 'lp', 'adm', 'dialout', 'cdrom', 'sudo', 'audio', 'video', 'plugdev', 13 'lp', 'adm', 'dialout', 'cdrom', 'sudo', 'audio', 'video', 'plugdev',
14 'games', 'users', 'netdev', 'i2c', 'input', 'spi', 'gpio', 'fuse', 14 'games', 'users', 'netdev', 'i2c', 'input', 'spi', 'gpio', 'fuse',
15 'docker', 'render' 15 'docker', 'render'