1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-23 05:39:11 +00:00
community.general/plugins/modules
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
..
cloud Adding while loop to wait for cluster container creation (#4039) (#4095) 2022-01-28 07:38:10 +01:00
clustering Fix docs issues. (#3682) (#3684) 2021-11-09 20:28:13 +01:00
database Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
files Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
identity New Module: Keycloak Realm Info (#3998) (#4022) 2022-01-11 07:13:16 +01:00
monitoring Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
net_tools Add nmcli support for IPv6 routes (#4062) (#4075) 2022-01-23 13:26:09 +01:00
notification Mattermost: Add sending of attachments (#3946) (#3972) 2022-01-03 19:44:06 +01:00
packaging [PR #3943/12c0220c backport][stable-4] Add option "options" to snap module (#4076) 2022-01-24 09:23:31 +01:00
remote_management Fix missing '>'. (#4080) (#4082) 2022-01-25 08:04:29 +01:00
source_control Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
storage zpool_facts - pythonification (#3332) 2021-09-06 19:23:33 +02:00
system New Module: Homectl module for managing systemd-homed (#4018) (#4096) 2022-01-28 07:38:25 +01:00
web_infrastructure Prepare for distutils.version being removed in Python 3.12 (#3936) (#3941) 2021-12-24 19:15:47 +01:00
aerospike_migrations.py
airbrake_deployment.py
aix_devices.py
aix_filesystem.py
aix_inittab.py
aix_lvg.py
aix_lvol.py
ali_instance.py
ali_instance_info.py
alternatives.py
ansible_galaxy_install.py ansible_galaxy_install - new module (#2933) 2021-07-29 22:30:20 +02:00
apache2_mod_proxy.py
apache2_module.py
apk.py
apt_repo.py
apt_rpm.py
archive.py
atomic_container.py
atomic_host.py
atomic_image.py
awall.py
beadm.py
bearychat.py
bigpanda.py
bitbucket_access_key.py
bitbucket_pipeline_key_pair.py
bitbucket_pipeline_known_host.py
bitbucket_pipeline_variable.py
bower.py
bundler.py
bzr.py
campfire.py
capabilities.py
cargo.py New module for cargo command (#3712) (#4011) 2022-01-08 16:03:23 +01:00
catapult.py
circonus_annotation.py
cisco_spark.py
cisco_webex.py
clc_aa_policy.py
clc_alert_policy.py
clc_blueprint_package.py
clc_firewall_policy.py
clc_group.py
clc_loadbalancer.py
clc_modify_server.py
clc_publicip.py
clc_server.py
clc_server_snapshot.py
cloud_init_data_facts.py
cloudflare_dns.py
cobbler_sync.py
cobbler_system.py
composer.py
consul.py
consul_acl.py
consul_kv.py
consul_session.py
copr.py New module: Add copr module (#1592) 2021-01-27 19:30:03 +01:00
cpanm.py
cronvar.py
crypttab.py
datadog_downtime.py Add downtime module (#1437) 2020-12-15 19:50:42 +01:00
datadog_event.py
datadog_monitor.py
dconf.py
deploy_helper.py
dimensiondata_network.py
dimensiondata_vlan.py
discord.py discord.py: Add new module for discord notifications (#2398) 2021-05-11 19:31:46 +02:00
django_manage.py
dnf_versionlock.py dnf_versionlock: new module (#3552) 2021-10-27 22:36:48 +02:00
dnsimple.py
dnsimple_info.py add dnsimple_info module, see issue #3569 (#3739) (#3890) 2021-12-11 21:29:27 +01:00
dnsmadeeasy.py
dpkg_divert.py
easy_install.py
ejabberd_user.py
elasticsearch_plugin.py
emc_vnx_sg_member.py
etcd3.py
facter.py
filesize.py new module: filesize - create or resize a file, given its size (#2232) 2021-04-19 07:04:29 +02:00
filesystem.py
flatpak.py
flatpak_remote.py
flowdock.py
gandi_livedns.py Add gandi_livedns module (#328) 2021-03-21 11:25:24 +01:00
gconftool2.py
gem.py
git_config.py
github_deploy_key.py
github_issue.py
github_key.py
github_release.py
github_repo.py Added new module github_repo (#1683) 2021-03-06 13:30:43 +01:00
github_webhook.py
github_webhook_info.py
gitlab_branch.py add module gitlab_branch (#3795) (#3879) 2021-12-09 21:19:13 +01:00
gitlab_deploy_key.py
gitlab_group.py
gitlab_group_members.py add a custom module for managing group membership in gitlab (#844) 2020-09-16 07:24:37 +02:00
gitlab_group_variable.py Create gitlab_group_variable.py (#786) 2020-09-21 10:15:56 +03:00
gitlab_hook.py
gitlab_project.py
gitlab_project_members.py added gitlab_project_members (#1829) 2021-02-21 17:56:53 +01:00
gitlab_project_variable.py
gitlab_protected_branch.py Added module for creating protected branches (#2781) 2021-07-17 08:49:09 +02:00
gitlab_runner.py
gitlab_user.py
grove.py
gunicorn.py
hana_query.py Add module hana_query to make SAP HANA administration easier. (#2623) 2021-05-27 18:46:12 +02:00
haproxy.py
heroku_collaborator.py
hg.py
hipchat.py
homebrew.py
homebrew_cask.py
homebrew_tap.py
homectl.py New Module: Homectl module for managing systemd-homed (#4018) (#4096) 2022-01-28 07:38:25 +01:00
honeybadger_deployment.py
hpilo_boot.py
hpilo_info.py
hponcfg.py
htpasswd.py
hwc_ecs_instance.py
hwc_evs_disk.py
hwc_network_vpc.py
hwc_smn_topic.py
hwc_vpc_eip.py
hwc_vpc_peering_connect.py
hwc_vpc_port.py
hwc_vpc_private_ip.py
hwc_vpc_route.py
hwc_vpc_security_group.py
hwc_vpc_security_group_rule.py
hwc_vpc_subnet.py
ibm_sa_domain.py
ibm_sa_host.py
ibm_sa_host_ports.py
ibm_sa_pool.py
ibm_sa_vol.py
ibm_sa_vol_map.py
icinga2_feature.py
icinga2_host.py
idrac_redfish_command.py
idrac_redfish_config.py
idrac_redfish_info.py
ilo_redfish_config.py Modules for managing HPE iLO (#3740) (#3892) 2021-12-11 21:56:10 +01:00
ilo_redfish_info.py Modules for managing HPE iLO (#3740) (#3892) 2021-12-11 21:56:10 +01:00
imc_rest.py
imgadm.py
infinity.py
influxdb_database.py
influxdb_query.py
influxdb_retention_policy.py
influxdb_user.py
influxdb_write.py
ini_file.py
installp.py
interfaces_file.py
ip_netns.py
ipa_config.py
ipa_dnsrecord.py
ipa_dnszone.py
ipa_group.py
ipa_hbacrule.py
ipa_host.py
ipa_hostgroup.py
ipa_otpconfig.py Added modules ipa_otpconfig and ipa_otptoken (#2122) 2021-04-11 15:25:03 +02:00
ipa_otptoken.py Added modules ipa_otpconfig and ipa_otptoken (#2122) 2021-04-11 15:25:03 +02:00
ipa_pwpolicy.py Add ipa_pwpolicy module (#1147) 2021-01-06 19:17:07 +03:00
ipa_role.py
ipa_service.py
ipa_subca.py
ipa_sudocmd.py
ipa_sudocmdgroup.py
ipa_sudorule.py
ipa_user.py
ipa_vault.py
ipify_facts.py
ipinfoio_facts.py
ipmi_boot.py
ipmi_power.py
iptables_state.py
ipwcli_dns.py
irc.py
iso_create.py
iso_extract.py
jabber.py
java_cert.py
java_keystore.py
jboss.py
jenkins_build.py Jenkins build module (#745) 2021-03-04 07:46:37 +01:00
jenkins_job.py
jenkins_job_info.py
jenkins_plugin.py
jenkins_script.py
jira.py
kernel_blacklist.py
keycloak_authentication.py Keycloak: add authentication management (#2456) 2021-06-24 13:35:00 +02:00
keycloak_client.py
keycloak_client_rolemapping.py Keycloak: add client_rolemapping management (#2941) 2021-07-30 20:03:57 +02:00
keycloak_clientscope.py Keycloak: add clientscope management (#2905) 2021-07-19 23:39:02 +02:00
keycloak_clienttemplate.py
keycloak_group.py
keycloak_identity_provider.py Keycloak: add identity providers management (#3210) 2021-08-31 07:07:53 +02:00
keycloak_realm.py Keycloak: add realm management (#2155) 2021-04-21 12:42:28 +02:00
keycloak_realm_info.py New Module: Keycloak Realm Info (#3998) (#4022) 2022-01-11 07:13:16 +01:00
keycloak_role.py Add Keycloak roles module (#2930) 2021-07-19 23:17:39 +02:00
keycloak_user_federation.py Add keycloak_user_federation module (#3340) 2021-09-20 19:19:42 +02:00
kibana_plugin.py
launchd.py
layman.py
lbu.py
ldap_attrs.py
ldap_entry.py
ldap_passwd.py
ldap_search.py
librato_annotation.py
linode.py
linode_v4.py
listen_ports_facts.py
lldp.py
locale_gen.py
logentries.py
logentries_msg.py
logstash_plugin.py
lvg.py
lvol.py
lxc_container.py
lxca_cmms.py
lxca_nodes.py
lxd_container.py
lxd_profile.py
macports.py
mail.py
make.py
manageiq_alert_profiles.py
manageiq_alerts.py
manageiq_group.py
manageiq_policies.py
manageiq_provider.py
manageiq_tags.py
manageiq_tenant.py
manageiq_user.py
mas.py
matrix.py
mattermost.py
maven_artifact.py
memset_dns_reload.py
memset_memstore_info.py
memset_server_info.py
memset_zone.py
memset_zone_domain.py
memset_zone_record.py
mksysb.py
modprobe.py
monit.py
mqtt.py
mssql_db.py
mssql_script.py added module mssql_script (#3557) 2021-10-27 22:38:35 +02:00
nagios.py
netcup_dns.py
newrelic_deployment.py
nexmo.py
nginx_status_info.py
nictagadm.py
nmcli.py
nomad_job.py new module nomad_job & nomad_job_info (#867) 2020-10-19 13:40:07 +02:00
nomad_job_info.py new module nomad_job & nomad_job_info (#867) 2020-10-19 13:40:07 +02:00
nosh.py
npm.py
nsupdate.py
oci_vcn.py
odbc.py
office_365_connector_card.py
ohai.py
omapi_host.py
one_host.py
one_image.py
one_image_info.py
one_service.py
one_template.py opennebula: add one_template module (#2046) 2021-03-26 07:24:24 +01:00
one_vm.py
oneandone_firewall_policy.py
oneandone_load_balancer.py
oneandone_monitoring_policy.py
oneandone_private_network.py
oneandone_public_ip.py
oneandone_server.py
onepassword_info.py
oneview_datacenter_info.py
oneview_enclosure_info.py
oneview_ethernet_network.py
oneview_ethernet_network_info.py
oneview_fc_network.py
oneview_fc_network_info.py
oneview_fcoe_network.py
oneview_fcoe_network_info.py
oneview_logical_interconnect_group.py
oneview_logical_interconnect_group_info.py
oneview_network_set.py
oneview_network_set_info.py
oneview_san_manager.py
oneview_san_manager_info.py
online_server_info.py
online_user_info.py
open_iscsi.py
openbsd_pkg.py
opendj_backendprop.py
openwrt_init.py
opkg.py
osx_defaults.py
ovh_ip_failover.py
ovh_ip_loadbalancing_backend.py
ovh_monthly_billing.py
pacemaker_cluster.py
packet_device.py
packet_ip_subnet.py
packet_project.py
packet_sshkey.py
packet_volume.py
packet_volume_attachment.py
pacman.py
pacman_key.py add module pacman_key (#778) 2021-06-04 07:08:54 +02:00
pagerduty.py
pagerduty_alert.py
pagerduty_change.py Adds a module for sending PagerDuty change events. (#1269) 2020-11-13 11:44:57 +03:00
pagerduty_user.py a new module pagerduty_user (#1025) 2020-11-26 13:22:35 +01:00
pam_limits.py
pamd.py
parted.py
pear.py
pids.py
pingdom.py
pip_package_info.py
pipx.py pipx - new module (#3507) 2021-10-06 07:01:54 +02:00
pkg5.py
pkg5_publisher.py
pkgin.py
pkgng.py
pkgutil.py
portage.py
portinstall.py
pritunl_org.py New module: Add Pritunl VPN organization module (net_tools/pritunl/) (#804) 2021-04-08 22:37:06 +02:00
pritunl_org_info.py New module: Add Pritunl VPN organization module (net_tools/pritunl/) (#804) 2021-04-08 22:37:06 +02:00
pritunl_user.py New module: Add Pritunl VPN user module (net_tools/pritunl/) (#803) 2021-03-21 11:30:16 +01:00
pritunl_user_info.py New module: Add Pritunl VPN user module (net_tools/pritunl/) (#803) 2021-03-21 11:30:16 +01:00
profitbricks.py
profitbricks_datacenter.py
profitbricks_nic.py
profitbricks_volume.py
profitbricks_volume_attachments.py
proxmox.py
proxmox_domain_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
proxmox_group_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
proxmox_kvm.py
proxmox_nic.py Add proxmox_nic module (#2449) 2021-05-13 21:48:49 +02:00
proxmox_snap.py New module: proxmox_snap (#1135) 2020-12-21 14:37:30 +01:00
proxmox_storage_info.py New module proxmox_storage_info (#1844) 2021-02-22 17:59:27 +01:00
proxmox_tasks_info.py Proxmox tasks module (#3226) 2021-10-03 22:21:33 +02:00
proxmox_template.py
proxmox_user_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
pubnub_blocks.py
pulp_repo.py
puppet.py
pushbullet.py
pushover.py
python_requirements_info.py
rax.py
rax_cbs.py
rax_cbs_attachments.py
rax_cdb.py
rax_cdb_database.py
rax_cdb_user.py
rax_clb.py
rax_clb_nodes.py
rax_clb_ssl.py
rax_dns.py
rax_dns_record.py
rax_facts.py
rax_files.py
rax_files_objects.py
rax_identity.py
rax_keypair.py
rax_meta.py
rax_mon_alarm.py
rax_mon_check.py
rax_mon_entity.py
rax_mon_notification.py
rax_mon_notification_plan.py
rax_network.py
rax_queue.py
rax_scaling_group.py
rax_scaling_policy.py
read_csv.py
redfish_command.py
redfish_config.py
redfish_info.py
redhat_subscription.py
redis.py
redis_data.py Added redis_data module (#3230) 2021-09-20 19:47:23 +02:00
redis_data_incr.py Added redis_incr module (#3229) 2021-10-22 07:54:02 +02:00
redis_data_info.py Adds redis_data_info module (#3227) 2021-09-08 07:14:37 +02:00
redis_info.py
rhevm.py
rhn_channel.py
rhn_register.py
rhsm_release.py
rhsm_repository.py
riak.py
rocketchat.py
rollbar_deployment.py
rpm_ostree_pkg.py rpm_ostree_pkg: new module (#357) 2021-01-11 09:47:22 +03:00
rundeck_acl_policy.py
rundeck_job_executions_info.py Add new modules rundeck_job_run and rundeck_job_executions_info (#3521) 2021-10-11 06:55:47 +02:00
rundeck_job_run.py Add new modules rundeck_job_run and rundeck_job_executions_info (#3521) 2021-10-11 06:55:47 +02:00
rundeck_project.py
runit.py
sap_task_list_execute.py SAP task list execution (#3169) 2021-08-09 22:52:44 +02:00
sapcar_extract.py Add module sapcar_extract to make SAP administration easier. (#2596) 2021-06-04 07:36:35 +02:00
say.py
scaleway_compute.py
scaleway_database_backup.py
scaleway_image_info.py
scaleway_ip.py
scaleway_ip_info.py
scaleway_lb.py
scaleway_organization_info.py
scaleway_security_group.py
scaleway_security_group_info.py
scaleway_security_group_rule.py
scaleway_server_info.py
scaleway_snapshot_info.py
scaleway_sshkey.py
scaleway_user_data.py
scaleway_volume.py
scaleway_volume_info.py
sefcontext.py
selinux_permissive.py
selogin.py
sendgrid.py
sensu_check.py
sensu_client.py
sensu_handler.py
sensu_silence.py
sensu_subscription.py
seport.py
serverless.py
shutdown.py
sl_vm.py
slack.py
slackpkg.py
smartos_image_info.py
snap.py
snap_alias.py snap_alias - new module (#3642) 2021-10-31 18:38:21 +01:00
snmp_facts.py
solaris_zone.py
sorcery.py
spectrum_device.py
spectrum_model_attrs.py spectrum_model_attrs: Initial commit (#1802) 2021-04-12 22:26:43 +02:00
spotinst_aws_elastigroup.py
ss_3par_cpg.py
ssh_config.py ssh_config: new module (#1640) 2021-01-28 07:26:48 +01:00
stackdriver.py
stacki_host.py
statsd.py StatsD Module (#1793) 2021-02-16 11:46:39 +01:00
statusio_maintenance.py
sudoers.py Sudoers (take 2) (#3746) (#3977) 2022-01-04 21:08:02 +01:00
supervisorctl.py
svc.py
svr4pkg.py
swdepot.py
swupd.py
syslogger.py
syspatch.py
sysrc.py New sysrc module for managing rc files on FreeBSD (#1460) 2021-01-16 14:14:23 +01:00
sysupgrade.py
taiga_issue.py
telegram.py
terraform.py
timezone.py
twilio.py
typetalk.py
udm_dns_record.py
udm_dns_zone.py
udm_group.py
udm_share.py
udm_user.py
ufw.py
uptimerobot.py
urpmi.py
utm_aaa_group.py
utm_aaa_group_info.py
utm_ca_host_key_cert.py
utm_ca_host_key_cert_info.py
utm_dns_host.py
utm_network_interface_address.py
utm_network_interface_address_info.py
utm_proxy_auth_profile.py
utm_proxy_exception.py
utm_proxy_frontend.py
utm_proxy_frontend_info.py
utm_proxy_location.py
utm_proxy_location_info.py
vdo.py
vertica_configuration.py
vertica_info.py
vertica_role.py
vertica_schema.py
vertica_user.py
vexata_eg.py
vexata_volume.py
vmadm.py
wakeonlan.py
webfaction_app.py
webfaction_db.py
webfaction_domain.py
webfaction_mailbox.py
webfaction_site.py
xattr.py
xbps.py
xcc_redfish_command.py add new module xcc_redfish_command to manage Lenovo servers using Redfish APIs (#2007) 2021-03-24 15:07:17 +01:00
xenserver_facts.py
xenserver_guest.py
xenserver_guest_info.py
xenserver_guest_powerstate.py
xfconf.py
xfconf_info.py xfconf_info - new module (#3045) 2021-07-24 22:30:46 +02:00
xfs_quota.py
xml.py
yarn.py
yum_versionlock.py yum_versionlock: new module (#1405) 2020-12-03 20:00:49 +01:00
zfs.py
zfs_delegate_admin.py
zfs_facts.py
znode.py
zpool_facts.py
zypper.py
zypper_repository.py