Chef cookbook to download and install the PHP extension redis - https://github.com/nicolasff/phpredis
node['php-redis']['url'] = 'https://github.com/nicolasff/phpredis/archive/master.tar.gz'
node['php-redis']['igbinary'] = true
node['php-redis']['conf_dirs'] = ['/etc/php.d']
node['php-redis']['conf_file'] = 'redis.ini'
Include php-redis
in your node's run_list
. This will download and install redis.
{
"run_list": [
"recipe[php-redis::default]"
]
}
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request