diff options
author | Aaron LI <aly@aaronly.me> | 2017-06-15 13:58:11 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-06-15 13:58:11 +0800 |
commit | 0ef861cde7f5da8c3406dfdb0353832db007bf48 (patch) | |
tree | dea9f47a255b22e6611bb3006b84c2c86da30515 | |
parent | 36566bb966db57f0a90a545504b4443196b720a7 (diff) | |
download | debian-hpc-0ef861cde7f5da8c3406dfdb0353832db007bf48.tar.bz2 |
netinstall: set uid=999 for first normal user (can do sudo)
-rw-r--r-- | group_vars/master | 4 | ||||
-rw-r--r-- | roles/netinstall/templates/debian.preseed.cfg.j2 | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/group_vars/master b/group_vars/master index 8f2e02f..c30ffdb 100644 --- a/group_vars/master +++ b/group_vars/master @@ -35,4 +35,8 @@ tftp_root: /srv/tftp # for LAN nodes. apt_mirror: ftp.sjtu.edu.cn +# UID of the first normal user created (can do sudo, which should +# be used as the admin user later.) +node_user_uid: 999 + # vim: set ft=yaml sw=2: diff --git a/roles/netinstall/templates/debian.preseed.cfg.j2 b/roles/netinstall/templates/debian.preseed.cfg.j2 index 30c3e53..7f03abe 100644 --- a/roles/netinstall/templates/debian.preseed.cfg.j2 +++ b/roles/netinstall/templates/debian.preseed.cfg.j2 @@ -138,7 +138,7 @@ d-i passwd/user-password-again password {{ node_user_pass }} # or encrypted using a crypt(3) hash. #d-i passwd/user-password-crypted password [crypt(3) hash] # Create the first user with the specified UID instead of the default. -#d-i passwd/user-uid string 1010 +d-i passwd/user-uid string {{ node_user_uid }} # The user account will be added to some standard initial groups. To # override that, use this. |