Skip to content

Latest commit

 

History

History
76 lines (66 loc) · 1.94 KB

README.md

File metadata and controls

76 lines (66 loc) · 1.94 KB

puma_service Cookbook

This cookbook will install Puma as a system service using the init scripts provided by Puma

Requirements

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

Attributes

cookbook-puma-service::default

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

{}

Usage

cookbook-puma-service::default

  1. 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"
    }
  }
}
  1. Include puma_service in your node's run_list:
{
  "name":"my_node",
  "run_list": [
    "recipe[puma_service]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Case Taintor