{"id":15374511,"url":"https://github.com/lispython/redis-cookbook","last_synced_at":"2026-02-27T12:39:26.741Z","repository":{"id":6497222,"uuid":"7737674","full_name":"Lispython/redis-cookbook","owner":"Lispython","description":"Chef recipe to install redis package","archived":false,"fork":false,"pushed_at":"2015-04-06T15:01:55.000Z","size":176,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T18:55:34.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/Lispython.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-01-21T18:20:21.000Z","updated_at":"2016-12-14T23:14:36.000Z","dependencies_parsed_at":"2022-08-26T04:00:14.609Z","dependency_job_id":null,"html_url":"https://github.com/Lispython/redis-cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lispython/redis-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fredis-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fredis-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fredis-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fredis-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lispython","download_url":"https://codeload.github.com/Lispython/redis-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lispython%2Fredis-cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29895256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"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":[],"created_at":"2024-10-01T13:58:56.661Z","updated_at":"2026-02-27T12:39:26.708Z","avatar_url":"https://github.com/Lispython.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Description\n===========\n\nCookbook for setup and configure [redis](http://redis.io) application.\n\n\nRequirements\n============\n\n\nAttributes\n==========\n\nThe redis.conf file are dynamically generated from attributes or via ``redis_conf`` definition.\n\nAll default values of attributes you can see in `attributes/default.rb`\n\n\nUsage\n=====\nTo use the cookbook we recommend creating a cookbook named after the application, e.g. my_app.\nIn metadata.rb you should declare a dependency on this cookbook:\n\ndepends \"redis\"\n\nInclude ``recipe[redis::user]`` and ``recipe[redis]``  to you runlist.\n\nTo create many servers on one node overrwrite `node[\"redis\"][\"servers\"]` attribute.\n\nAdd ``\"recipe[redis::instance]\"`` to you runlist. This recipe configure and run redis-servers from `node[\"redis\"][\"servers\"]` attribute.\n\nOr make you own custom configuration via resouces and definitions.\n\nInstall redis server\n\n  redis_install \"redis-server\" do\n    version \"2.6.9\"\n  end\n\nCreate redis config\n\n    redis_conf \"redis-6379\" do\n       user \"redis\"\n       group \"group\"\n       template \"redis.conf.erb\"\n       cookbook \"redis\"\n       config_dir \"/etc/redis\"\n       config :port =\u003e 6379\n    end\n\nCreate launch instance:\n\n    service \"redis-6379\" do\n        supports :status =\u003e true, :restart =\u003e true, :reload =\u003e true\n        action [:enable, :restart]\n    end\n\nOr you can user `redis` resource that included `redis_conf` and `redis_install`:\n\n    redis \"redis-6379\" do\n        action :create\n        config :port =\u003e server[\"port\"], \"bind\" =\u003e server[\"bind\"]\n    end\n\nDefinitions\n===========\n\n\nredis_conf\n----------\n\nYou can create config for redis need use definition ``redis_conf``:\n\n    redis_conf \"redis-6379\" do\n       user \"redis\"\n       group \"group\"\n       template \"redis.conf.erb\"\n       cookbook \"redis\"\n       config_dir \"/etc/redis\"\n       config :port =\u003e 6379\n    end\n\n#### Attributes\n\n- ``name`` name or path to config file (if config attr not used)\n- ``template`` config template file name\n- ``user`` user that own application\n- ``group`` gtoup that own application\n- ``config`` path to config file\n- ``cookbook`` location to search config template\n- ``config_file`` path to config file\n- ``init_d_template`` init.d template name\n\n\nResources\n=========\n\n### redis\n\nTo configure and run redis instance you can user ``redis`` resouce\n\n#### Attribute parameters\n\n- ``name`` instance name\n- ``group`` launch by group\n- ``user`` launch by user\n- ``config``: path to config file\n- ``cookbook`` location to seache templates\n- ``template`` config template name\n- ``init_template`` init.d script template name\n- ``config_dir`` path to configs\n- ``data_dir`` path to datadir\n- ``version`` version to install\n- ``prefix`` package name prefix\n- ``location`` package base url location\n- ``install_dir`` directory to install redis bin files\n- ``download_dir`` temporary directory to download package\n- ``provider``: instance porvider (default: ``Chef::Provider::RedisBase``)\n\n### install\n\nResource used to download and install redis server\n\n- ``name`` package name\n- ``version`` redis version\n- ``prefix`` redis prefix\n- ``location`` uri directory location\n- ``install_dir`` directory to install redis bin files\n- ``download_dir`` temporary directory to download package\n\n### Providers\n\nredis cookbook support 3 providers:\n\n- ``Chef::Provider::RedisBase`` - simple provider that used by redis that configure and install redis via installation provider\n- ``Chef::Provider::RedisSoruce`` - provider that help to download and install redis\n- ``Chef::Provider::RedisRunit`` - provider, that spawn instance via ``runit``\n\n\n\nRecipes\n=======\n\ndefault\n-------\n\nBase recipe to configure redis user and group\n\ninstance\n--------\n\nRecipe to install simple redis instance.\n\nuser\n----\n\nRecipe to create users\n\n\nSee also\n========\n\n- [Redis \u0026mdash; key-value store](http://redis.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispython%2Fredis-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flispython%2Fredis-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispython%2Fredis-cookbook/lists"}