disclaimer: i work at opscode now...

you can do this with chef-solo

something like this snippet, but add --prefix to configure and modify the rest to your taste:

  ruby_version = "1.9.3-p125"

  bash "compile ruby #{ruby_version} from sources" do
    cwd "/tmp"
    code <<-EOH
      rm -rf /tmp/ruby-#{ruby_version}
      wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-#{ruby_version}.tar.gz
      tar -xvzf ruby-#{ruby_version}.tar.gz && cd ruby-#{ruby_version}
      ./configure && make && make install && ln -sf /usr/local/bin/ruby 
/usr/bin/ruby
    EOH
    creates "/usr/local/bin/ruby"
  end


On Sun, 23 Dec 2012, Yves Dorfsman wrote:


I might be in a situation where I need to install and configure software on Linux servers without having root access (I'd have my own filesystems, and a "power user" which owns those filesystems). Yet I need this task to be easily repeatable (read: as automated as possible).

Is it worth trying to do this with puppet?

Are there tools specialised for this kind of tasks (software install, config, change of config files)?

Thanks.

--
Yves.                                                  http://www.SollerS.ca/
                                                      http://ipv6.SollerS.ca
                                                      http://blog.zioup.org/
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/


_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/

Reply via email to