~dparv/charm-local-users:add_multiple_keys_per_user_and_sudoers

Last commit made on 2022-03-08
Get this branch:
git clone -b add_multiple_keys_per_user_and_sudoers https://git.launchpad.net/~dparv/charm-local-users
Only Diko Parvanov can upload to this branch. If you are Diko Parvanov please log in for upload directions.

Branch merges

Branch information

Name:
add_multiple_keys_per_user_and_sudoers
Repository:
lp:~dparv/charm-local-users

Recent commits

3423e46... by Diko Parvanov

Changed requests from comments

- Re-written sudoers file creation atomically (with os.rename)
- Changed styling

9f55cb8... by Diko Parvanov

Lint black + removed lambda function

b957a47... by Diko Parvanov

Added options for multiple ssh keys and sudoers

 - Multiple ssh keys can now be provided by the charm config and
repeating lines with username
 - Custom sudoers.d file can now be populated with the charm config

3fcfb4b... by Przemyslaw Lal

Add tests and fix minor issues detected by tests

Signed-off-by: Przemysław Lal <email address hidden>

Reviewed-on: https://code.launchpad.net/~przemeklal/charm-local-users/+git/charm-local-users/+merge/412759
Reviewed-by: James Troup <email address hidden>

c03ad89... by Przemyslaw Lal

Add tests and fix minor issues detected by tests

Signed-off-by: Przemysław Lal <email address hidden>

2921a4f... by Przemyslaw Lal

update docs to mention the intended number of managed users

Signed-off-by: Przemysław Lal <email address hidden>

5442de1... by Przemyslaw Lal

use simplified bases in charmcraft config and add bionic

Signed-off-by: Przemysław Lal <email address hidden>

0c4a900... by Przemyslaw Lal

change default group name to "charm-managed"

Signed-off-by: Przemysław Lal <email address hidden>

2a04839... by Przemyslaw Lal

remove LICENSE headers from .yaml and empty files

Signed-off-by: Przemysław Lal <email address hidden>

08ff7c4... by Przemyslaw Lal

Add management of local user accounts and groups

* Create, update and remove user accounts and groups based on juju
config
* Set up passwordless SSH access for maanged users
* Detect conflicts between pre-existing users and charm config
* Support renaming managed group after config value change
* Backup home dirs of delete users before removing them
* Remove managed users and group before terminating unit
* Document usage and configuration

Signed-off-by: Przemysław Lal <email address hidden>