clean up these notes

add-key-for-user
nate 2018-02-18 00:12:23 -08:00
parent 23c7322cac
commit cfa5219d32
1 changed files with 1 additions and 30 deletions

View File

@ -194,27 +194,7 @@ def _guarded_run(cmd_args, **run_args):
return e return e
# development notes! # things to consider:
# what the puppet module does:
# * creates user account
# * creates home directory
# * creates authorized_keys2
# * adds user to group 'tilde' (why?)
# * sets shell
# * creates .ssh directory
# * creates .irssi directory
# * creates templatized .irssi config file (irssi isn't even default anymore...)
# * creates hardcoded .twurlrc file (why not skel?)
#
# some of this stuff is pointless and the actually required stuff is:
# * create user account (useradd)
# * create home dir (useradd)
# * create .ssh/authorized_keys2 (need functions for this
# * set shell (chsh)
# * create .twurlrc (just use /etc/skel)
# other things to consider:
# * what happens when a user wants their name changed? # * what happens when a user wants their name changed?
# * it looks like usermod -l and a mv of the home dir can change a user's username. # * it looks like usermod -l and a mv of the home dir can change a user's username.
# * would hook this into the pre_save signal to note a username change # * would hook this into the pre_save signal to note a username change
@ -231,12 +211,3 @@ def _guarded_run(cmd_args, **run_args):
# * username # * username
# * displayname (only if i start using this?) # * displayname (only if i start using this?)
# * ssh key # * ssh key
#
# how should this code be structured?
# * within the Townie model, hardcoded
# * outside the Townie model, procedurally
# * within an abstract class
#
# for now my gut says to implement stuff hardcoded in the Townie class but with
# an eye towards generalizing the pattern in some base class for other
# resources as needed.