Plugin to install/update and uninstall RPM & GEM packages

54 views
Skip to first unread message

Mathieu

unread,
Jun 5, 2007, 6:48:12 PM6/5/07
to capis...@googlegroups.com
Hello,

Capistrano can be so useful, even away from Rails application deployment!

I have written a plugin to install local RPM and GEM packages (stored on the host running Capistrano) to remote servers. I thought that somebody else could be interested, so it is available here: http://www.zlaj.org/package_plugin.html .

Please note that it is limited to what I need, but it could help anybody interested in something similar.

Mathieu

P.S.: Here is an example:

require "package_plugin"

  set :rpm_memcached, "memcached-1.1.12-1.2.el4.rf.i386.rpm"
  set :gem_memcached, "Ruby-MemCache-0.0.1.gem"

  set :depot_dir, "#{ENV['HOME']}/depot"
  set :rpm_depot_dir, depot_dir + '/rpm'
  set :gem_depot_dir, depot_dir + '/gem'

  role :core, "server01"
  role :util, "server01"

  desc "Install memcached"
  task :install_memcached, :roles => [:core, :util] do
    package.install rpm_memcached
    package.install gem_memcached
  end

  desc "Uninstall memcached"
  task :uninstall_memcached, :roles => [:core, :util] do
    package.uninstall rpm_memcached
    package.uninstall gem_memcached
  end

Haani Niyaz

unread,
May 5, 2014, 1:46:51 AM5/5/14
to capis...@googlegroups.com
Your link doesn't work anymore. Is the code you've posted the extent of your plugin or is there more to it?

Thanks.

Rob Hunter

unread,
May 5, 2014, 6:15:07 AM5/5/14
to capis...@googlegroups.com

You might not have noticed, but you were replying to a message from 2007. That message is nearly seven years old!

A lot has changed since Mathieu posted that message and the "package" plugin.

These days, we have Bundler to manage our gem versions, and we rely on our provisioning systems to ensure that RPM packages are installed and configured. If you're provisioning existing hosts, then common tools include names like Puppet, Chef, Ansible, and the Salt stack.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/e8fb3a28-f16c-4fe2-9b47-abdc14ba8c2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages