May 2012 Archives

installing cpan modules with chef

Chef is a systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

I have created cpan cookbook to install cpan modules with chef. It's easy in use, because all the implimenation is hidden providing you simple interface:

cpan_client 'CGI' do
    action 'install'
    install_type 'cpan_module'
    user 'root'
    group 'root'

end

Among cpan_client features are:

  • installing in dry-run mode
  • installing with given installbase and installpath
  • installing from tarball
  • installing within given cwd
  • and others

For more details visit - http://community.opscode.com/cookbooks/cpan

About melezhik

user-pic perl, chef, jenkins, configuration management