diff options
-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. |