1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/system
patchback[bot] 3ca6e8525e
New Module: Homectl module for managing systemd-homed (#4018) (#4096)
* initial development of homectl module

* botmeta

* fix some linting

* Update .github/BOTMETA.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* use array form of run_command

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* added mofifying user record and cleaned up based on comments

* added updating records/multiple changes regarding options, examples doc, return doc

* add integration tests and more overall improvements

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* removed modify handle within present

* adding more options and better checking of user records when updating

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/system/homectl.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add code review changes

- remove unsafe_shell with run_command.
- use dict.pop() in user_metadata dict.
- consistent quoting to single quotes.
- change logic to determine check mode better
- fix integration tests and added check_mode tests

* Fix handling of mount opts

When a user is created without mountopts homed will use nodev and nosuid
by default, however the user record metadata will not contain these
values. This commit takes extra care that correct value is being set to
true or false. So if a user gives mountopts with just nodev we need to
make sure the nosuid and noexec gets set to false, etc. If mountopts are
same as currently in user record make sure nothing would be changed and
outputs correctly.

Also fixed some tests.

* change fmethod modify_user to prepare_modify_user_command

* Code review fixes and add existing user pw checking

- Added methods to check existing users password is correct by comparing
  the hash stored in homed user record and the hash of given password
- Updated integration tests for above case
- Added aliases file so CI can run

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit ab7e4ee578)

Co-authored-by: James Livulpi <james.livulpi@me.com>
2022-01-28 07:38:25 +01:00
..
aix_devices.py Tidy up validate-modules:doc-required-mismatch (#1415) 2020-11-28 14:06:28 +01:00
aix_filesystem.py aix_filesystems - invoke run_command passing list (#3833) (#3882) 2021-12-09 22:00:12 +01:00
aix_inittab.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
aix_lvg.py aix_lvg - invoke run_command passing list (#3834) (#3883) 2021-12-09 22:01:28 +01:00
aix_lvol.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
alternatives.py fix alternatives parsing when they are part of a group (#3976) (#4021) 2022-01-10 07:27:31 +01:00
awall.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
beadm.py rewritten as list literals (#2160) 2021-04-05 09:22:06 +02:00
capabilities.py [capabilities] fix for a newer versions of libcap (#1061) 2020-10-16 21:03:54 +02:00
cronvar.py Tidy up all pylint:blacklisted-name ignore lines (#1819) 2021-02-16 08:03:51 +01:00
crypttab.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
dconf.py Mark non-secret leaking module options with no_log=False (#2001) 2021-03-12 08:51:47 +01:00
dpkg_divert.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
facter.py Added Arguments for Facter module (#768) 2020-11-23 18:59:09 +01:00
filesystem.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
gconftool2.py Mark non-secret leaking module options with no_log=False (#2001) 2021-03-12 08:51:47 +01:00
homectl.py New Module: Homectl module for managing systemd-homed (#4018) (#4096) 2022-01-28 07:38:25 +01:00
interfaces_file.py interfaces_file - fixed dup options bug (#3862) (#3866) 2021-12-08 05:54:48 +00:00
iptables_state.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
java_cert.py java_cert - invoke run_command passing list (#3835) (#3842) 2021-12-03 08:07:15 +01:00
java_keystore.py java_keystore: fix keystore type (#2516) 2021-06-27 14:56:43 +02:00
kernel_blacklist.py kernel_blacklist - revamped the module (#3329) 2021-09-20 19:39:35 +02:00
launchd.py Fix new devel sanity errors. (#3194) 2021-08-12 12:07:50 +02:00
lbu.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
listen_ports_facts.py listen_ports_facts: Added support for ss (#3708) (#3744) 2021-11-16 20:06:56 +01:00
locale_gen.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
lvg.py Tidy up all pylint:blacklisted-name ignore lines (#1819) 2021-02-16 08:03:51 +01:00
lvol.py Rework safety check on size arguments for when LV doesn't exist (#3681) (#3720) 2021-11-13 15:27:35 +01:00
make.py added jobs parameter to make module (#1550) 2021-01-16 22:12:45 +01:00
mksysb.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
modprobe.py modprobe - fix task status when module cannot be loaded (#2843) 2021-06-26 23:27:41 +12:00
nosh.py Docs improvements. (#3893) (#3894) 2021-12-12 11:46:31 +01:00
ohai.py Fix M(). (#591) 2020-06-29 14:59:15 +02:00
open_iscsi.py extend open_iscsi to allow rescanning a session to discover new mapped LUN's #3763 (#3765) (#3774) 2021-11-22 19:50:44 +01:00
openwrt_init.py openwrt_init - improvements (#3284) 2021-08-28 21:50:09 +02:00
osx_defaults.py Mark non-secret leaking module options with no_log=False (#2001) 2021-03-12 08:51:47 +01:00
pam_limits.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
pamd.py pamd - fixed issue+minor refactorings (#3285) 2021-08-31 12:34:57 +02:00
parted.py Fix repeated word in description of fs_type (#2717) 2021-06-04 19:11:46 +02:00
pids.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
puppet.py puppet: Add documentation and remove deprecation for show_diff, keep deprecation for alias show-diff (#3980) (#4019) 2022-01-10 07:27:22 +01:00
python_requirements_info.py Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
runit.py Remove deprecated options, aliases and defaults (#3461) 2021-10-12 13:56:15 +02:00
sap_task_list_execute.py SAP task list execution (#3169) 2021-08-09 22:52:44 +02:00
sefcontext.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
selinux_permissive.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
selogin.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
seport.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
shutdown.py New module: shutdown (#700) 2020-08-11 17:54:41 +02:00
solaris_zone.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
ssh_config.py ssh_config: Add 'forwardagent' option (#3495) 2021-10-14 21:24:23 +02:00
sudoers.py Fix BOTMETA and corresponding sanity test (#3989) (#3990) 2022-01-06 06:56:27 +01:00
svc.py svc - invoke run_command passing list (#3829) (#3830) 2021-12-01 20:43:16 +01:00
syspatch.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
sysrc.py New sysrc module for managing rc files on FreeBSD (#1460) 2021-01-16 14:14:23 +01:00
sysupgrade.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
timezone.py small docs update for timezone module (#3876) (#3878) 2021-12-09 21:19:03 +01:00
ufw.py [ufw] Insert or delete biased when deletion enabled - as for append or delete. (#3514) 2021-10-07 15:31:38 +02:00
vdo.py vdo - refactor (#3191) 2021-08-16 12:23:06 +02:00
xfconf.py xfconf - using aggregated base class (#3919) (#3920) 2021-12-20 10:15:24 +01:00
xfconf_info.py added supports_check_mode=True to info/facts modules (#3084) 2021-07-27 18:24:29 +02:00
xfs_quota.py bugfix: xfs_quota feedback on projects not initialized has changed (#1596) 2021-02-27 08:38:24 +01:00