X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fspecialaccounts.py;h=2cbda589c76d43a7ad2e9cde82f7ace62db3b68a;hb=854fdfe526baa82adf31f14cac8a62223b310050;hp=359ff210d1dac66ab287863ef73b707c80a67903;hpb=342c63a2acd2acfb5876b872cea47f152ca5f12e;p=nodemanager.git diff --git a/plugins/specialaccounts.py b/plugins/specialaccounts.py index 359ff21..2cbda58 100644 --- a/plugins/specialaccounts.py +++ b/plugins/specialaccounts.py @@ -1,13 +1,11 @@ #!/usr/bin/python -tt # vim:set ts=4 sw=4 expandtab: # -# $Id$ -# $URL$ # # NodeManager plugin to create special accounts """ -Have NM create/populate accounts/ssh keys for special persons such as root, site_admin, etc. +create/populate accounts/ssh keys for special persons such as root, site_admin, etc. """ @@ -25,11 +23,11 @@ import tools # right after conf_files priority = 3 -def start(options, conf): +def start(): logger.log("specialaccounts: plugin starting up...") def GetSlivers(data, conf = None, plc = None): - if 'accounts' not in data: + if 'accounts' not in data: logger.log_missing_data("specialaccounts.GetSlivers",'accounts') return @@ -56,7 +54,7 @@ def GetSlivers(data, conf = None, plc = None): changes = tools.replace_file_with_string(auth_keys,auth_keys_contents) if changes: logger.log("specialaccounts: keys file changed: %s" % auth_keys) - + # always set permissions properly os.chmod(dot_ssh, 0700) os.chown(dot_ssh, uid,gid)