This cookbook will install Puma as a system service using the init scripts provided by Puma
This cookbook has only been tested on CentOS 6.5 and will probably only work on RHEL machines. If you're interested in adding support for other OSes, fork it and send a pull request
Key | Type | Description | Default |
---|---|---|---|
['puma_service']['apps'] |
Hash | a hash containing configuration settings for each puma on the system | {} |
['puma_service']['env_hash'] |
Hash | a hash containing environment variables and their values. These will be set for all runs of puma or puma-ctl | {} |
- Add a puma service to the apps hash
"puma_service": {
"apps": {
"bacon_creator": {
"app_path": "/path/to/my/bacon_creator",
"user": "bacon_user",
"config_file_path": "/path/to/my/bacon_creator/config/puma.rb",
"log_file_path": "/path/to/my/bacon_creator/config/log/puma.log"
}
}
}
- Include
puma_service
in your node'srun_list
:
{
"name":"my_node",
"run_list": [
"recipe[puma_service]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Case Taintor