百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

redisio

> 数据库
开源

redisio 烹饪书的开发仓库

296 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

redisio 烹饪书的开发仓库

Redisio Cookbook

redisio is a resource-first Sous Chefs cookbook for installing Redis and managing Redis server and Sentinel instances with systemd.

Upgrading from version 7 requires recipe and attribute migrations. Read the version 8 upgrade guide before changing the cookbook constraint.

Supported Platforms

  • Amazon Linux 2023
  • Debian 12 and 13
  • Rocky Linux 9
  • Ubuntu 22.04 and 24.04

Resources

Preferred resources

  • redisio_install
  • redisio_server
  • redisio_sentinel_instance

Compatibility wrappers

  • redisio_configure
  • redisio_sentinel

The compatibility wrappers preserve the old aggregate servers and sentinels payload shapes while delegating to the new per-instance resources.

Basic Usage

Install Redis from packages and start one instance

ruby
redisio_install 'default' do
  package_install true
end

redisio_server '6379' do
  package_install true
end

Create a named secondary instance

ruby
redisio_server 'savetest' do
  package_install true
  port 16_379
  permissions '0640'
  save ['3600 1', '300 100', '60 10000']
  logfile '/var/log/redis/redis-16379.log'
end

Create a Sentinel instance

ruby
redisio_sentinel_instance 'cluster' do
  package_install true
  masters [
    {
      master_name: 'master6379',
      master_ip: '127.0.0.1',
      master_port: 6379,
    },
  ]
end

Use the compatibility wrapper

ruby
redisio_configure 'default' do
  package_install true
  servers [
    { 'port' => 6379 },
    { 'name' => 'savetest', 'port' => 16_379, 'permissions' => '0640' },
  ]
end

Testing

Run lint and unit tests with:

bash
cookstyle
chef exec rspec --format documentation

Run the default integration suite with:

bash
KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test default-ubuntu-2404 --destroy=always

Additional public API details live in documentation/*.md.

Issues· 14 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubychefchef-cookbookchef-resourcehacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库