Skip to content

studio3104/chef-xbuild

Repository files navigation

xbuild cookbook

Chef cookbook for xbuild

Requirements

Recipes

Platforms

Supports

  • RedHat, CentOS

Not supports (Have not tried)

  • Debian, Ubuntu
  • Fedora, Amazon, Scientific

Usage

Recipe

The listed as below, declare the 'include_recipe'.

include_recipe 'xbuild'

Examples

Attributes & Recipes

Perl

Install Perl 5.16.3 with Acme::AjiFry and Proclet.

  • Attribute
{
  'perl' => {
     'version' => '5.16.3',
     'prefix'  => '/usr/local/bin/perl-5.16.3',
  }
}
  • Recipe
xbuild_perl "install perl #{node['perl']['version']}" do
  version node['perl']['version']
  prefix  node['perl']['prefix']
end

%w{
  Acme::AjiFry
  Proclet
}.each do |module_name|
  xbuild_cpanm module_name do
    options '--force --verbose'
    perl_root node['perl']['prefix']
  end
end

Ruby

Install Ruby 1.9.3-p392 with ec2ssh and serverspec.

  • Attribute
{
  'ruby' => {
    'version' => '1.9.3-p392',
    'prefix'  => '/usr/local/bin/ruby-1.9.3',
  }
}
  • Recipe
xbuild_ruby "install ruby #{node['ruby']['version']}" do
  version node['ruby']['version']
  prefix  node['ruby']['prefix']
end

%w{
  ec2ssh
  serverspec
}.each do |module_name|
  xbuild_gem module_name do
    options '--no-rdoc --no-ri'
    ruby_root node['ruby']['prefix']
  end
end

PHP

Install PHP 5.5snapshot with install option '--with-pear'.

  • Attribute
{
  'php' => {
    'version' => '5.5snapshot',
    'prefix'  => '/usr/local/bin/php-5.5snapshot',
    'options' => '--with-pear',
  }
}
  • Recipe
xbuild_php "install php #{node['php']['version']}" do
  version node['php']['version']
  options node['php']['options']
  prefix  node['php']['prefix']
end

Python

Install Python 2.7.3

  • Attribute
{
  'python' => {
    'version' => '2.7.3',
    'prefix'  => '/usr/local/bin/python-2.7.3',
  }
}
  • Recipe
xbuild_python "install python #{node['python']['version']}" do
  version node['python']['version']
  prefix  node['python']['prefix']
end

Node

Install Node.js v0.10.1

  • Attribute
{
  'node' => {
    'version' => 'v0.10.1',
    'prefix'  => '/usr/local/bin/node-0.10.1',
  }
}
  • Recipe
xbuild_node "install node #{node['node']['version']}" do
  version node['node']['version']
  prefix  node['node']['prefix']
end

Author

Satoshi SUZUKI ([email protected])

License

Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages