Using a manifest like this:
redis::server { "${env}-redis-${port}" :
redis_memory => $memory,
redis_ip => $ip,
redis_port => $port,
requirepass => $password,
running => true,
enabled => true,
redis_nr_dbs => 2
}
On CentOS 6, the /var/run/redis directory is not created and the puppet agent run fails when it can't copy the /etc/redis.conf to that that directory. I fixed it by putting the following at the top of my manifest:
file { '/var/run/redis' :
ensure => 'directory',
}