Skip to content

dsaenztagarro/rubystack

Repository files navigation

Cookbook Version Build Status Code Climate Coverage Status Dependency Status

rubystack Cookbook

My skeleton cookbook for provisioning rails apps

This cookbook makes your favorite breakfast sandwich.

Requirements

Platforms

  • Ubuntu 14.04 LTS

Chef

  • Chef 12.2.0

Cookbooks

  • database_sl
  • rvm_sl
  • phussionpassenger

Data bags

Depends on data bag users and data bag item deployer.

# data_bags/users/deployer.json.sample

{
  "id": "deployer",
  "home": "/home/deployer",
  "password": "abcdefghijklmnopqrstuvwxyz0123456789",
  "shell": "/bin/bash"
}

Generate new password with:

openssl passwd -1 "theplaintextpassword"

Attributes

rubystack::default

See attributes/default.rb for default values.

  • node['rubystack']['application'] - The application name
  • node['rubystack']['rails_env'] - The rails environment
  • node['rubystack']['deployer']['username'] - The deployer user name
  • node['rubystack']['deployer']['password'] - The deployer user password

rubystack::database

See attributes/database.rb for default values.

  • node['rubystack']['db']['name'] - The database name
  • node['rubystack']['db']['hostname'] - The hostname of the database
  • node['rubystack']['db']['username'] - The username of the database
  • node['rubystack']['db']['password'] - The password of the database

rubystack::webserver

See attributes/webserver.rb for default values.

  • node['rubystack']['webserver']['name'] - The server name
  • node['rubystack']['webserver']['document_root'] - The document root of the virtualhost

Usage

rubystack::default

Just include rubystack in your node run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[rubystack]"
  ]
}

Sharing

knife cookbook site share "rubystack" "Applications"

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your 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: David Saenz Tagarro

About

Chef cookbook for managing ruby stacks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages