Chef cookbook for xbuild
- RedHat, CentOS
- Debian, Ubuntu
- Fedora, Amazon, Scientific
The listed as below, declare the 'include_recipe'.
include_recipe 'xbuild'
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
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
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
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
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
Satoshi SUZUKI ([email protected])
Apache License, Version 2.0