{"id":24316929,"url":"https://github.com/joshbeard/puppet-login_defs","last_synced_at":"2026-03-07T23:31:31.744Z","repository":{"id":35655710,"uuid":"39930676","full_name":"joshbeard/puppet-login_defs","owner":"joshbeard","description":"Puppet module for managing login.defs","archived":false,"fork":false,"pushed_at":"2026-02-27T21:14:21.000Z","size":133,"stargazers_count":0,"open_issues_count":6,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-28T01:50:28.037Z","etag":null,"topics":["compliance","configuration-management","linux","puppet","puppet-module","stig","sysadmin","unix"],"latest_commit_sha":null,"homepage":"https://forge.puppet.com/modules/joshbeard/login_defs","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshbeard.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-07-30T04:07:48.000Z","updated_at":"2026-02-27T21:14:25.000Z","dependencies_parsed_at":"2023-12-05T05:30:48.120Z","dependency_job_id":"aea0da39-da1a-4871-b440-397e21ac29f4","html_url":"https://github.com/joshbeard/puppet-login_defs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/joshbeard/puppet-login_defs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fpuppet-login_defs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fpuppet-login_defs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fpuppet-login_defs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fpuppet-login_defs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbeard","download_url":"https://codeload.github.com/joshbeard/puppet-login_defs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fpuppet-login_defs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30237329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T23:24:20.706Z","status":"ssl_error","status_checked_at":"2026-03-07T23:21:10.486Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["compliance","configuration-management","linux","puppet","puppet-module","stig","sysadmin","unix"],"created_at":"2025-01-17T13:21:13.121Z","updated_at":"2026-03-07T23:31:31.714Z","avatar_url":"https://github.com/joshbeard.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# login_defs module for Puppet\n\n![Validation Status](https://github.com/joshbeard/puppet-login_defs/actions/workflows/validate.yml/badge.svg)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b791bcb3054c464babda1614868639d4)](https://www.codacy.com/gh/joshbeard/puppet-login_defs/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=joshbeard/puppet-login_defs\u0026amp;utm_campaign=Badge_Grade)\n[![CodeFactor](https://www.codefactor.io/repository/github/joshbeard/puppet-login_defs/badge)](https://www.codefactor.io/repository/github/joshbeard/puppet-login_defs)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/joshbeard/login_defs.svg)](https://forge.puppetlabs.com/joshbeard/login_defs)\n[![License](https://img.shields.io/github/license/joshbeard/puppet-login_defs.svg)](https://github.com/joshbeard/puppet-login_defs/blob/master/LICENSE)\n\nManages `/etc/login.defs` on Linux systems.\n\n## Setup\n\n### What this module affects\n\nManages the contents, owner, group, and mode of `/etc/login.defs`\n\n### Beginning with this module\n\nA regular `include` will use default configuration:\n\n```puppet\ninclude login_defs\n```\n\nSee [Example Usage](#example-usage) below for more ways to use this module.\n\n## Requirements\n\n* Requires Puppet 4.x\n* Requires [puppetlabs/stdlib](https://forge.puppet.com/modules/puppetlabs/stdlib) module.\n\n## Usage\n\n### Class: `login_defs`\n\n#### Parameters\n\n##### `mode`\n\nSpecifies the file mode for `/etc/login.defs`.  Defaults to `0644`.\n\n##### `owner`\n\nSpecifies the file owner for `/etc/login.defs`. Defaults to `root`.\n\n##### `group`\n\nSpecifies the file group for `/etc/login.defs`. Defaults to `0`.\n\n##### `options`\n\nA _hash_ of options to populate the `login.defs` file with.\n\nReference the `login.defs(5)` man page for a list of configuration items and\ntheir description.  [http://linux.die.net/man/5/login.defs](http://linux.die.net/man/5/login.defs)\n\n* Any option you add here will be _merged_ with the default options.\n\n* You can override a default value here as well by using a key with the same\n  name.\n\n* You can remove a default option by specifying `undef` or an empty string for\n  its value.\n\n* Your options will _not_ be validated for correctness.\n\n### Example Usage\n\nTo customize, set the `login_defs::options` parameter with values that will\n_override_ and be _merged_ with the defaults.\n\nSpecifying options in a class declaration:\n\n```puppet\nclass { 'login_defs':\n  options =\u003e {\n    'UMASK' =\u003e '022'\n  }\n}\n```\n\nIn Hiera data:\n\n```yaml\nlogin_defs::options:\n  UMASK: '022'\n```\n\nRemove the default `ENCRYPT_METHOD` entirely:\n\n```puppet\nclass { '::login_defs':\n  options =\u003e {\n    'ENCRYPT_METHOD' =\u003e undef,\n  },\n}\n```\n\n## Contributing\n\n1. Fork and clone the repository.\n\n2. Branch off of `master`.\n\n3. Open a merge request into `master` and check the validation results (GitHub Actions).\n\nTo add a distribution's default options:\n\n1. Create a file under `data/` named as:\n\n   ```yaml\n   - \"%{facts.os.family}-%{facts.os.release.major}.yaml\"\n   - \"%{facts.os.family}.yaml\"\n   - \"%{facts.os.name}.yaml\"\n   ```\n\n   Be specific if the options are unique to a particular release. Refer to the\n   [RedHat defaults](data/) for an example of setting common defaults in\n   `RedHat.yaml` and overriding or adding parameters in `RedHat-*.yml`.\n\n2. Refer to the existing configs for an example of the structure.\n\n3. Set _all_ of the default options for the distribution from `/etc/login.defs`\n   without any customizations.\n\n4. Define a test (optional)\n\n   Add the test to the [`spec/matrix.yaml`](spec/matrix.yaml) file,\n   specifying the value of the options to check. This may be duplicated from\n   the Hiera data, but it's _flat_.\n\n   A test isn't required for contributions, but it's helpful. If one isn't\n   provided in a contribution, it will be added by the maintainer.\n\n## Contributors\n\nMaintained by [Josh Beard](https://joshbeard.me)\n\nSee the list of [contributors](https://github.com/joshbeard/puppet-login_defs/graphs/contributors).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fpuppet-login_defs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbeard%2Fpuppet-login_defs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fpuppet-login_defs/lists"}