{"id":27958116,"url":"https://github.com/ericsson/puppet-module-sudo","last_synced_at":"2025-10-06T01:18:45.123Z","repository":{"id":11716389,"uuid":"14236060","full_name":"Ericsson/puppet-module-sudo","owner":"Ericsson","description":"Puppet module to manage sudo","archived":false,"fork":false,"pushed_at":"2023-09-20T12:06:33.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T18:16:19.956Z","etag":null,"topics":["puppet"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ericsson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-08T15:18:01.000Z","updated_at":"2022-11-04T14:09:40.000Z","dependencies_parsed_at":"2023-01-11T18:10:23.054Z","dependency_job_id":null,"html_url":"https://github.com/Ericsson/puppet-module-sudo","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-sudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-sudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-sudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-sudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ericsson","download_url":"https://codeload.github.com/Ericsson/puppet-module-sudo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931508,"owners_count":21827112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["puppet"],"created_at":"2025-05-07T18:16:24.828Z","updated_at":"2025-10-06T01:18:40.070Z","avatar_url":"https://github.com/Ericsson.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"puppet-module-sudo\n==================\n\nManage sudo package and configuration files in /etc/sudoers.d/\n\n[![Build Status](https://api.travis-ci.org/Ericsson/puppet-module-sudo.png?branch=master)](https://travis-ci.org/Ericsson/puppet-module-sudo)\n\n\n# Requirements #\n\nMust have at least version 1.7.2 of sudo, which is where `includedir` was introduced.\n\n\n# Compatability #\n\nThis module has been tested to work on the following systems with Puppet\nversions 5, 6 and 7 with the Ruby version associated with those releases.\nThis module aims to support the current and previous major Puppet versions.\n\n## OS Distributions ##\n\n * Debian 7\n * Debian 8\n * EL 5\n * EL 6\n * EL 7\n * SLED 10\n * SLED 11\n * SLED 12\n * SLES 10\n * SLES 11\n * SLES 12\n * Solaris 9\n * Solaris 10\n * Solaris 11\n * Ubuntu 12.04 LTS\n * Ubuntu 14.04 LTS\n * Ubuntu 16.04 LTS\n\n\n# Parameters #\n\npackage\n-------\nPackage to be installed. Accept string or array.\n\n- *Default*: 'sudo'\n\npackage_source\n--------------\nSource attribute of $package\n\n- *Default*: undef\n\npackage_ensure\n--------------\nEnsure attribute of $package\n\n- *Default*: 'present'\n\npackage_manage\n--------------\nManage sudo package or not. Accept string or boolean.\n\n- *Default*: 'true'\n\npackage_adminfile\n-----------------\nPath to adminfile for package installation\n\n- *Default*: undef\n\nconfig_dir\n----------\nPath to sudoers include dir.\n\n- *Default*: '/etc/sudoers.d'\n\nconfig_dir_group\n----------------\nGroup attribute of $config_dir\n\n- *Default*: 'root'\n\nconfig_dir_mode\n---------------\nMode attribute of $config_dir\n\n- *Default*: '0750'\n\nconfig_dir_ensure\n-----------------\nEnsure attribute of $config_dir\n\n- *Default*: 'directory'\n\nconfig_dir_purge\n----------------\nPurge attribute of $config_dir\n\n- *Default*: 'true'\n\nsudoers\n-------\nHash of sudoers passed to sudo::fragments\n\n- *Default*: undef\n\nsudoers_manage\n--------------\nManage $config_file file and files under $config_dir. Accepts string and boolean.\n\n- *Default*: 'true'\n\nconfig_file\n-----------\nPath to sudoers file\n\n- *Default*: '/etc/sudoers',\n\nconfig_file_group\n-----------------\nGroup of $config_file\n\n- *Default*: 'root'\n\nconfig_file_owner\n-----------------\nOwner of $config_file\n\n- *Default*: 'root'\n\nconfig_file_mode\n-----------------\nMode of $config_file\n\n- *Default*: '0440'\n\nrequiretty\n----------\nEnable requiretty option in sudoers file\n\n- *Default*: 'true'\n\nvisiblepw\n---------\nEnable visiblepw option in sudoers file\n\n- *Default*: 'false'\n\nalways_set_home\n---------------\nEnable always_set_home option in sudoers file\n\n- *Default*: 'true'\n\nenvreset\n--------\nEnable envreset option in sudoers file\n\n- *Default*: 'true'\n\nenvkeep\n-------\nArray of environment variables for envkeep option in sudoers file\n\n- *Default*: ['COLORS','DISPLAY','HOSTNAME','HISTSIZE','INPUTRC','KDEDIR','LS_COLORS','MAIL','PS1','PS2','QTDIR','USERNAME','LANG','LC_ADDRESS','LC_CTYPE','LC_COLLATE','LC_IDENTIFICATION','LC_MEASUREMENT','LC_MESSAGES','LC_MONETARY','LC_NAME','LC_NUMERIC','LC_PAPER','LC_TELEPHONE','LC_TIME','LC_ALL','LANGUAGE','LINGUAS','_XKB_CHARSET','XAUTHORITY']\n\nsecure_path\n-----------\nString of secure path in sudoers file\n\n- *Default*: '/sbin:/bin:/usr/sbin:/usr/bin'\n\nroot_allow_all\n--------------\nEnable sudo rule in sudoers file for root to get full access\n\n- *Default*: 'true'\n\nincludedir\n----------\nEnable inclusion of fragments directory in sudoers file. Requires sudo \u003e= 1.7.2\n\n- *Defaults*: 'true'\n\ninclude_libsudo_vas\n-------------------\nEnable inclusion of libsudo_vas plugin. Requires sudo \u003e= 1.8\n\n- *Defaults*: 'false'\n\nlibsudo_vas_location\n--------------------\nLocation of libsudo_vas plugin\n\n- *Defaults*: 'USE_DEFAULTS', based on architecture\n\nalways_query_group_plugin\n-------------------------\nSets Defaults option 'always_query_group_plugin'. Previously all unknown system\ngroups was automatically passed to the group plugin. This is no longer the case\nsince 1.8.15. To pass unknown system groups to group_plugin 'always_query_group_plugin'\nmust be set.\n\nSudo lines with the syntax below will always use group_plugin to resolve groups.\nplugin for that specific entry:\n\u003cpre\u003e\n%:Group\n\u003c/pre\u003e\n\n- *Defaults*: 'USE_DEFAULTS'\n\nThis option is automatically enabled if include_libsudo_vas is set to true and\n$::sudo_version =\u003e 1.8.15.\n\n## sudo::fragment parameters\n\nensure\n-------\nEnsure attribute of the file created in $config_dir\n\n- *Default*: present\n\npriority\n--------\nPriority of the file\n\n- *Default*: 10\n\ncontent\n-------\nContent attribute of file\n\n- *Default*: undef\n\nsource\n------\nSource of the file\n\n- *Default*: undef\n\nconfig_dir\n----------\nPath to the folder\n\n- *Default*: $sudo::config_dir\n\nconfig_dir_group\n----------------\nGroup of the file\n\n- *Default*: $sudo::config_dir_group\n\n# Sample usage:\n sudo for group admins and user userX through Hiera.\n\n\u003cpre\u003e\nsudo::sudoers:\n  \"admins\":\n    content : \"%admins ALL=(ALL) NOPASSWD: ALL\"\n  \"userX\":\n    content : \"USERX ALL=(ALL) ALL\"\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fpuppet-module-sudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsson%2Fpuppet-module-sudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fpuppet-module-sudo/lists"}