用木偶改变redis超时

时间:2014-10-23 15:05:12

标签: redis timeout vagrant puppet

我有一个使用vagrant / puppet安装redis的虚拟机。如何覆盖/配置redis超时设置?

尝试

class { 'redis':
  version => '2.6.5',
  redis_timeout => 0
}

给了我

Invalid parameter redis_timeout at /tmp/vagrant-puppet/manifests/default.pp:308 on node precise64

我提到我不想要两个动作(其中一个具有正确的超时)......

redis::instance { 'redis-6900':
  redis_port => '6900',
  redis_timeout => 0,
}

...或更改模块中的原始配置参数文件

# == Class: redis::params
#
# Redis params.
#
# === Parameters
#
# === Authors
#
# Thomas Van Doren
#
# === Copyright
#
# Copyright 2012 Thomas Van Doren, unless otherwise noted.
#
class redis::params {

  $redis_port = '6379'
  $redis_bind_address = false
  $version = '2.4.13'
  $redis_src_dir = '/opt/redis-src'
  $redis_bin_dir = '/opt/redis'
  $redis_max_memory = '4gb'
  $redis_max_clients = false
  $redis_timeout = 0         # 0 = disabled
  $redis_loglevel = 'notice'
  $redis_databases = 16
  $redis_slowlog_log_slower_than = 10000 # microseconds
  $redis_slowlog_max_len = 1024
  $redis_password = false

}

0 个答案:

没有答案