{"id":14997741,"url":"https://github.com/saz/puppet-memcached","last_synced_at":"2025-04-12T19:42:53.989Z","repository":{"id":1652757,"uuid":"2378645","full_name":"saz/puppet-memcached","owner":"saz","description":"Puppet module for memcached","archived":false,"fork":false,"pushed_at":"2025-03-10T18:08:10.000Z","size":326,"stargazers_count":57,"open_issues_count":2,"forks_count":156,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T00:08:45.012Z","etag":null,"topics":["memcached","puppet"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saz.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}},"created_at":"2011-09-13T14:06:18.000Z","updated_at":"2025-03-10T17:22:09.000Z","dependencies_parsed_at":"2024-12-27T13:08:50.534Z","dependency_job_id":"f24d0e67-e610-430d-ad98-85da80d3b7c5","html_url":"https://github.com/saz/puppet-memcached","commit_stats":{"total_commits":293,"total_committers":66,"mean_commits":"4.4393939393939394","dds":0.6177474402730375,"last_synced_commit":"a0cfb7bb749ef951b66e05d88bc2cb7bcde1fde7"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saz%2Fpuppet-memcached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saz%2Fpuppet-memcached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saz%2Fpuppet-memcached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saz%2Fpuppet-memcached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saz","download_url":"https://codeload.github.com/saz/puppet-memcached/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625428,"owners_count":21135512,"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":["memcached","puppet"],"created_at":"2024-09-24T17:31:29.034Z","updated_at":"2025-04-12T19:42:53.946Z","avatar_url":"https://github.com/saz.png","language":"Ruby","readme":"# memcached module for Puppet\n\n[![Build Status](https://github.com/saz/puppet-memcached/workflows/CI/badge.svg)](https://github.com/saz/puppet-memcached/actions?query=workflow%3ACI)\n\nManage memcached via Puppet\n\n## How to use\n\n```\nStarting with version 3.0.0, memcached will be listening on 127.0.0.1 only.\nThis should make setups more secure (e.g. if there are no firewall rules in place).\n\nFor the old behaviour, you need to set listen to '0.0.0.0'.\n```\n\n### Use roughly 90% of memory\n\n```ruby\n    class { 'memcached': }\n```\n\n### Set a fixed memory limit in MB\n\n```ruby\n    class { 'memcached':\n      max_memory =\u003e 2048\n    }\n```\n\n### Use 12% of available memory\n\n```ruby\n    class { 'memcached':\n      max_memory =\u003e '12%'\n    }\n```\n\n### Install multiple memcached instances\n\nthe multiinstance support uses a systemd instance unit file. This will be placed\nat `/etc/systemd/system/memcached@.service`. It allows us to manage multiple\ninstances via the same unit file. To start a simple instance, you only need to\nknow the desired TCP port:\n\n```puppet\nmemcached::instance{'11222':}\n```\n\nthat's it! It will bind to localhost and listen to TCP port 11222. You might\nwant to tune the systemd limits, for example the number of file descriptors\n(LimitNOFILE) or the number of processes (LimitNPROC):\n\n```puppet\nmemcached::instance{'11222':\n  limits =\u003e {\n    'LimitNOFILE' =\u003e 8192,\n    'LimitNPROC'  =\u003e 16384,\n  }\n}\n```\n\nAll systemd limits are documented in the [systemd documentation](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Properties).\n\nAnother usecase. Let's assume your name is Eric and you want to change the\nactual memcached parameters, for example to bind it to every interface:\n\n```puppet\nmemcached::instance{'11222':\n  override_content =\u003e \"[Service]\\nEnvironment='LISTEN=-l 0.0.0.0'\",\n}\n```\n\nMaybe Eric also wants to override the cache size (the unit is MB):\n\n```puppet\nmemcached::instance{'11222':\n  override_content =\u003e \"[Service]\\nEnvironment=CACHESIZE=4096\\n\",\n}\n```\n\nlast but not least, Eric might also want to override the maximum amount\nof connections (the default is 1024):\n\n```puppet\nmemcached::instance{'11222':\n  override_content =\u003e \"[Service]\\nEnvironment=MAXCONN=4096\\n\",\n}\n```\n\nNow Eric wants to use all those three settings at the same time:\n\n```puppet\nmemcached::instance{'11222':\n  override_content =\u003e \"[Service]\\nEnvironment=MAXCONN=4096\\nEnvironment=CACHESIZE=4096\\nEnvironment='LISTEN=-l 0.0.0.0'\\n\",\n}\n```\n\nInstead of passing a long string with multiple `\\n`, Eric can also put the\ncontent in a file and provide that:\n\n```puppet\nmemcached::instance{'11222':\n  override_source =\u003e \"${module_name}/memcached_11222_override.conf\\n\",\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaz%2Fpuppet-memcached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaz%2Fpuppet-memcached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaz%2Fpuppet-memcached/lists"}