nuka.tasks.user

unix user related tasks

nuka.tasks.user.authorized_keys

nuka.tasks.user.authorized_keys(username=None, keys=None, keysfile=None, **kwargs)[source]

upload ssh keys from string or file

Example:

await user.create_user('myuser')
await user.authorized_keys(
    username='myuser', keysfile='~/.ssh/authorized_keys')

nuka.tasks.user.create_user

nuka.tasks.user.create_user(username=None, **kwargs)[source]

create a unix account

Example:

await user.create_user('myuser')

nuka.tasks.user.create_www_user

nuka.tasks.user.create_www_user(username=None, **kwargs)[source]

create a unix account with /var/www/{username} as home

nuka.tasks.user.delete_user

nuka.tasks.user.delete_user(username=None, **kwargs)[source]

remove a unix account

Example:

await user.delete_user('myuser')