cdist-backup/cdist/conf/type
Philippe Grégoire a915baa73b
__user: explore with /etc files
getent(1) is a utility available where Name Service Switch (NSS)
is available. Many modern operating systems support it, but that
may not be the case of all (e.g. embedded systems).

This commit modifies the __user type explorers to check the
traditional files instead of relying solely on the availability
of getent(1).

- Makes the group explorer use /etc/group
- Makes the passwd explorer use /etc/passwd
- Makes the shadow explorer use /etc/shadow

Implementation note

"getent shadow" does not support querying an entry using a uid
since it does not store that information. Since the shadow explorer
uses __object_id, the passwd explorer does not check if __object_id
matches an entry by uid. This behavior ensures consistent, transparent
behavior of the type. The group explorer, on the other hand, handles
group names and uids; like always.
2017-08-20 12:10:54 -04:00
..
__apt_key Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__apt_key_uri Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__apt_mark +x 2017-07-03 15:18:27 +03:00
__apt_norecommends Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__apt_ppa Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__apt_source Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__apt_update_index Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__block Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__ccollect_source Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__cdist Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__cdistmarker Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__chroot_mount Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__chroot_umount Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__config_file Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_agent Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_check Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_reload Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_service Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_template Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_template_template Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_checks Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_event Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_key Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_keyprefix Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_nodes Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_service Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__consul_watch_services Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__cron Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__daemontools Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__daemontools_service Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__debconf_set_selections Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__directory Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__docker Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__docker_compose Updated to docker-compose version 1.14 2017-07-21 21:18:16 +02:00
__dog_vdi Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__dot_file Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__file one space too much 2017-07-04 19:25:08 +03:00
__filesystem Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__firewalld_rule Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__firewalld_start Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__git Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__go_get Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__golang_from_vendor Add missing shebangs. 2017-07-15 22:16:25 +02:00
__grafana_dashboard Add missing shebangs. 2017-07-15 22:16:25 +02:00
__group Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__hostname Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__hosts Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_bootloader_grub Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_chroot_mount add forgotten symlink 2017-07-07 02:10:06 +02:00
__install_chroot_umount make uefi boot work 2017-06-27 10:32:25 +02:00
__install_config Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_directory add __install_directory type 2017-06-27 10:33:34 +02:00
__install_file Update docs for types that used man.rst as symbolic links. 2016-12-16 08:19:41 +01:00
__install_fstab Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_generate_fstab Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_mkfs Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_mount Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_partition_msdos Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_partition_msdos_apply Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_reboot Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_reset_disk Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__install_stage Merge inventory from beta branch. 2017-07-20 22:04:44 +02:00
__install_umount Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__iptables_apply Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__iptables_rule Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__issue Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__jail Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__jail_freebsd9 Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__jail_freebsd10 Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__key_value Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__keyboard Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__line Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__link Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__locale Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__locale_system Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__motd Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__mount Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__mysql_database Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__package Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_apt Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_dpkg Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_emerge Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_emerge_dependencies Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_luarocks Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_opkg Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_pacman Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_pip Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_pkg_freebsd Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_pkg_openbsd Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_pkgng_freebsd Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_rubygem Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_update_index Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_upgrade_all Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_yum Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__package_zypper Fix parallel object prepare and run steps. Add nonparallel type marker. 2017-07-15 22:18:20 +02:00
__pacman_conf Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__pacman_conf_integrate Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__pf_apply Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__pf_ruleset Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postfix Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postfix_master Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postfix_postconf Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postfix_postmap Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postfix_reload Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postgres_database Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postgres_extension Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__postgres_role Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__process Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__prometheus_alertmanager Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__prometheus_server Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__pyvenv Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__qemu_img Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__rbenv Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__rsync Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__rvm Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__rvm_gem sphinx> ':manpage:' -> ':strong:' 2016-06-30 15:13:33 +02:00
__rvm_gemset Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__rvm_ruby Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__ssh_authorized_key Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__ssh_authorized_keys Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__ssh_dot_ssh Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__staged_file Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__start_on_boot Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__sysctl Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__timezone always exit 0 2017-07-27 01:28:26 +03:00
__update_alternatives Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__user __user: explore with /etc files 2017-08-20 12:10:54 -04:00
__user_groups Fix gpasswd call in __user_groups: order incorrect 2017-08-03 15:11:35 +02:00
__yum_repo Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__zypper_repo Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00
__zypper_service Change shebang to #!/bin/sh -e 2017-06-28 13:19:32 +02:00