User Utils¶
Debian user helpers for other blueprints to use.
-
create_service_user
(name, groups=None, home=None)¶ Create a service user/group with a low UID, starting at 100 and counting upwards. Home dir and extra groups to join will not be created.
Parameters: - name – Username
- home – Home dir path (will not be created) (Optional)
- groups – Existing extra groups to join (Optional)
-
create_ssh_path
(username)¶
-
create_system_user
(name, groups=None, home=None)¶ Create a system user/group with a low UID, starting at 999 and counting downwards. Extra groups to join will not be created.
Parameters: - name – Username
- home – Home dir path to set and create (Optional)
- groups – Existing extra groups to join (Optional)
-
set_strict_host_checking
(username, host, check=False)¶
-
upload_ssh_keys
(username, key_pair_path)¶