Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding MySecureShell to debian:install

  • Loading branch information...
commit e3959a57c0f846ef8cec700d2010ce6cd4cdecdf 1 parent a445b63
Winton Welsh authored
Showing with 18 additions and 7 deletions.
  1. +8 −7 deploy.rb.example
  2. +10 −0 lib/recipes/debian.rb
View
15 deploy.rb.example
@@ -2,7 +2,7 @@ set :cookbook, {
:application => 'my_app',
:base_dir => '/var/www',
:repository => 'git@github.com:user/my-app.git',
- #:platform => :php # If enabled, you can remove all mongrel* lines
+ #:platform => :php, # If enabled, you can remove all mongrel* lines
:mongrel_port => 3000, # Your next app should be 3003
:ssh_port => 22, # Or any unused port above 1024 (best practice)
@@ -31,12 +31,13 @@ set :cookbook, {
},
:sources => {
- :git => 'http://kernel.org/pub/software/scm/git/git-1.6.0.1.tar.gz',
- :lighttpd => 'http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz',
- :nginx => 'http://sysoev.ru/nginx/nginx-0.6.32.tar.gz',
- :ruby => 'ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz',
- :rubygems => 'http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz',
- :sphinx => 'http://www.sphinxsearch.com/downloads/sphinx-0.9.8.tar.gz'
+ :git => 'http://kernel.org/pub/software/scm/git/git-1.6.0.1.tar.gz',
+ :lighttpd => 'http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz',
+ :nginx => 'http://sysoev.ru/nginx/nginx-0.6.32.tar.gz',
+ :mysecureshell => 'http://internap.dl.sourceforge.net/sourceforge/mysecureshell/MySecureShell-1.0_source.tgz',
+ :ruby => 'ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz',
+ :rubygems => 'http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz',
+ :sphinx => 'http://www.sphinxsearch.com/downloads/sphinx-0.9.8.tar.gz'
}
}
View
10 lib/recipes/debian.rb
@@ -104,6 +104,7 @@
task :default do
debian.install.git
debian.install.lighttpd
+ debian.install.mysecureshell
debian.install.mysql
debian.install.nginx
debian.install.php
@@ -137,6 +138,15 @@
ROOT.monit.config.default
end
+ desc "Install MySecureShell"
+ task :mysecureshell, :roles => :app do
+ # http://www.howtoforge.com/mysecureshell_sftp_debian_etch
+ sudo_puts 'aptitude install libssl0.9.7 ssh openssh-server -q -y'
+ install_source(:mysecureshell) do |path|
+ sudo_puts ";cd #{path} && ./configure && make && sudo make install"
+ end
+ end
+
desc 'Install MySQL'
task :mysql, :roles => :db do
sudo_puts 'aptitude install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby -q -y'
Please sign in to comment.
Something went wrong with that request. Please try again.