{"id":28481413,"url":"https://github.com/dev-sec/puppet-hardening-stdlib","last_synced_at":"2025-12-11T21:44:26.339Z","repository":{"id":17087686,"uuid":"19852844","full_name":"dev-sec/puppet-hardening-stdlib","owner":"dev-sec","description":"Shared functions for puppet hardening.","archived":false,"fork":false,"pushed_at":"2014-12-12T14:14:27.000Z","size":248,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-08T05:37:22.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dev-sec.io/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-sec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-16T10:28:19.000Z","updated_at":"2022-04-08T13:40:45.000Z","dependencies_parsed_at":"2022-08-26T11:32:16.780Z","dependency_job_id":null,"html_url":"https://github.com/dev-sec/puppet-hardening-stdlib","commit_stats":null,"previous_names":["telekomlabs/puppet-hardening-stdlib"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dev-sec/puppet-hardening-stdlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpuppet-hardening-stdlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpuppet-hardening-stdlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpuppet-hardening-stdlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpuppet-hardening-stdlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-sec","download_url":"https://codeload.github.com/dev-sec/puppet-hardening-stdlib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-sec%2Fpuppet-hardening-stdlib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276994541,"owners_count":25741828,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-06-07T20:07:19.979Z","updated_at":"2025-09-25T22:55:38.712Z","avatar_url":"https://github.com/dev-sec.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hardening Stdlib (puppet)\n\n## Description\n\nShared functions for hardening modules.\n\n## Requirements\n\n* Puppet; nothing else\n\n## Usage\n\n### merge_hardening\n\nTry to set a hardening parameter. The user still has the option to override it,\nwhich will result in a warning.\n\nParameters\n\n    merge_hardening( $original, $hardening, [ $name_of_parameter ] )\n\nThe `$name_of_parameter` is optional, but highly recommended to know which parameter\nresults in a Warning.\n\nFor simple values:\n\n    # Only defined by hardening:\n    # $original_option = undef\n    # $hardening_option = \"off\"\n    # $merged_option = \"off\"\n    $merged_option = merge_hardening( $original_option, $hardening_option, \"param \u003cname\u003e\" )\n\n    # User override:\n    # $original_option = \"on\"\n    # $hardening_option = \"off\"\n    # $merged_option = \"on\" (emits a warning)\n    $merged_option = merge_hardening( $original_option, $hardening_option, \"param \u003cname\u003e\" )\n\nFor maps:\n\n    # Only defined by hardening:\n    # $original_option = { a: \"on\" }\n    # $hardening_option = { b: \"off\" }\n    # $merged_option = { a: \"on\", b: \"off\" }\n    $merged_option = merge_hardening( $original_option, $hardening_option, \"map \u003cname\u003e\" )\n\n    # User override:\n    # $original_option = { a: \"on\", b: \"on\" }\n    # $hardening_option = { b: \"off\" }\n    # $merged_option = { a: \"on\", b: \"on\" } (emits a warning)\n    $merged_option = merge_hardening( $original_option, $hardening_option, \"map \u003cname\u003e\" )\n\n### getparam\n\nTaken from stdlib 4.2. You don't need to require this version of stdlib, but\nstill get access to this function. See: [stdlib v4.2 getparam description](https://github.com/puppetlabs/puppetlabs-stdlib/tree/08b00d9229961d7b3c3cba997bfb35c8d47e4c4b#getparam)\n\n## Contributors + Kudos\n\n...\n\n## License and Author\n\n* Author:: Dominik Richter \u003cdominik.richter@gmail.com\u003e\n* Author:: Deutsche Telekom AG\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sec%2Fpuppet-hardening-stdlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-sec%2Fpuppet-hardening-stdlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-sec%2Fpuppet-hardening-stdlib/lists"}