Skip to content

roma/roma-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roma-cookbook

Installs ROMA with Chef.
About booting ROMA, pleaes read ROMA website.
http://roma-kvs.org

Supported Platforms

The following platforms are supported:

  • centos
  • ubuntu

Attributes

Key Type Description Default
['roma']['gem_path'] String Select gems which you use /opt/rbenv/shims/gem
['roma']['target_dir'] String Target dirctory of ROMA /opt/roma
['roma']['target_user'] String Set up user of ROMA directory root
['roma']['target_group'] String Set up group of ROMA directory root
['roma']['app_name'] String Application name which you use by ROMA roma_app
['roma']['version'] String ROMA version 1.0.0
['roma']['source_uri'] String Source URL of ROMA https://github.com/roma/roma/archive/v1.0.0.tar.gz
['roma']['tc_ruby']['target_user'] String Set up user of tokyocabinet-ruby directory root
['roma']['tc_ruby']['version'] String Version of tokyocabinet-ruby 1.31.a
['roma']['tc_ruby']['source_uri'] String Source URL of tokyocabinet-ruby https://github.com/roma/tokyocabinet-ruby/archive/v1.31.a.tar.gz
['roma']['tc_ruby']['gem_option'] String The opsion which you use when you install tokyocabinet-ruby -- --with-tokyocabinet-dir=/usr/local/libexec

Usage

This cookbook require ruby for ROMA. If ruby is not installed:

berks vender

Include rbenv in your recipe:

include_recipe "rbenv::default"
include_recipe "rbenv::ruby_build"
include_recipe "rbenv::rbenv_vars"

rbenv_ruby "2.1.2" do
  ruby_version "2.1.2"
  global true
end

This cookbook primarily installs ROMA main unit packages. But it also need eventomachine gems.

Include roma and eventmachine in your node's run_list:

{
  "run_list": [
    "recipe[roma::default]",
    "recipe[roma::eventmachine]"
  ]
}

To use Tokyo Cabinet, include tc_ruby in your node's run_list:

{
  "run_list": [
    "recipe[roma::tc_ruby]",
    "recipe[roma::default]",
    "recipe[roma::eventmachine]"
  ]
}

tc_ruby needs Tokyo Cabinet. If you install Tokyo Cabinet, it can also be installed by Chef. Link: tokyo-cabinet-cookbook.

berks vender

To install tokyo-cabinet:

{
  "run_list": [
    "recipe[tokyo-cabinet]"
  ]
}

Authors

Author:: Rui Bando ([email protected])

About

Install Tokyo Cabinet and/or sets up for ROMA.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages