{"id":15517020,"url":"https://github.com/deric/puppet-sysctl_conf","last_synced_at":"2025-04-23T04:28:01.912Z","repository":{"id":35852203,"uuid":"219701476","full_name":"deric/puppet-sysctl_conf","owner":"deric","description":"Hiera based sysctl.conf management","archived":false,"fork":false,"pushed_at":"2024-06-25T13:09:07.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T07:10:29.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/deric.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-05T09:04:22.000Z","updated_at":"2024-06-25T13:06:19.000Z","dependencies_parsed_at":"2022-08-08T12:00:29.942Z","dependency_job_id":"e50ac7cb-bf38-4ebc-9a5a-fc01ec338bbc","html_url":"https://github.com/deric/puppet-sysctl_conf","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":0.06451612903225812,"last_synced_commit":"8baec46704479fb431726d38ecc3c9b547e93fc3"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fpuppet-sysctl_conf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fpuppet-sysctl_conf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fpuppet-sysctl_conf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deric%2Fpuppet-sysctl_conf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deric","download_url":"https://codeload.github.com/deric/puppet-sysctl_conf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250369710,"owners_count":21419261,"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":[],"created_at":"2024-10-02T10:10:53.626Z","updated_at":"2025-04-23T04:28:01.887Z","avatar_url":"https://github.com/deric.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puppet sysctl_conf\n\n[![Puppet\nForge](http://img.shields.io/puppetforge/v/deric/sysctl_conf.svg)](https://forge.puppetlabs.com/deric/sysctl_conf) [![Test](https://github.com/deric/puppet-sysctl_conf/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/deric/puppet-sysctl_conf/actions/workflows/main.yml) [![Puppet Forge\nDownloads](http://img.shields.io/puppetforge/dt/deric/sysctl_conf.svg)](https://forge.puppetlabs.com/deric/sysctl_conf/scores)\n\nConfigure Linux kernel parameters at runtime via Puppet's Hiera based `sysctl.conf` management.\n\n## Description\n\nBy default for each key (e.g. `net.ipv4.ip_forward`) creates a corresponding configuration file (e.g. `/etc/sysctl.d/net.ipv4.ip_forward.conf`) with given value (`net.ipv4.ip_forward = 1`). `sysctl` configuration is applied immediately.\n\n```yaml\nsysctl_conf::values:\n  net.ipv4.ip_forward:\n    value: 1\n```\n\n## Setup\n\nEither include `sysctl_conf` directly in your node's definition:\n\n```puppet\ninclude sysctl_conf\n```\nor via Hiera call, e.g.:\n\n```puppet\nlookup('classes', {merge =\u003e unique}).include\n```\n\nthen make sure to include `sysctl_conf` in `classes` definition:\n\n```yaml\nclasses:\n  - sysctl_conf\n```\n\n### Merge behavior\n\nCofigure [merge behavior](https://puppet.com/docs/puppet/latest/hiera_merging.html) suitable for you needs:\n\n```yaml\nlookup_options:\n  sysctl_conf::values:\n    merge: deep\n```\n\n## Usage\n\n- set simple value:\n```yaml\nsysctl_conf::values:\n  vm.overcommit_memory:\n    value: 1\n```\n\n- ignore non-activated configuration option\n```yaml\nsysctl_conf::values:\n  \"net.ipv6.conf.%{networking.primary}.disable_ipv6\":\n    value: 1\n    silent: true\n```\n\n- delete entry\n```yaml\nsysctl_conf::values:\n  kernel.keys.root_maxkeys:\n    ensure: absent\n```\n\n- don't persist configuration on disk\n```yaml\nsysctl_conf::values:\n  net.ipv6.conf.all.disable_ipv6:\n    value: 1\n    persist: false\n```\n- add comment\n```yaml\nsysctl_conf::values:\n  vm.swappiness:\n    value: 0\n    comment: 'disable swap'\n```\n\n- don't apply changes with `sysctl` command (will be applied upon next reboot)\n```yaml\nsysctl_conf::values:\n  kernel.sem:\n    value: '250 32000 256 256'\n    apply: false\n```\n- custom configuration file\n```yaml\nnet.ipv4.ip_forward:\n  kernel.sem:\n    value: 1\n    target: '/etc/sysctl.d/forwarding.conf'\n```\n\n## Documentation\n\nGenerate documentation:\n```\n$ rake strings:generate\n```\nin markdown:\n```\n$ puppet strings generate --format markdown --out sysctl_conf.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fpuppet-sysctl_conf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderic%2Fpuppet-sysctl_conf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderic%2Fpuppet-sysctl_conf/lists"}