Sha256: cd66f9eb4272877e585ca8244de036243ade8b8229f9b1fe95e746ddd6a389a0

Contents?: true

Size: 1.01 KB

Versions: 87

Compression:

Stored size: 1.01 KB

Contents

# Copyright 2009-2010 by le1t0@github. All rights reserved.
Capistrano::Configuration.instance(:must_exist).load do 
  namespace :deprec do
    namespace :amcc_3ware do
      
      desc "Install 3ware management tools"
      task :install, :roles => :storage_backend do
        sudo "sh -c 'cd /tmp ; wget http://www.3ware.com/download/Escalade9690SA-Series/9.5.3/tw_cli-linux-x86_64-9.5.3.tgz'"
        sudo "sh -c 'cd /tmp ; wget http://www.3ware.com/download/Escalade9690SA-Series/9.5.3/tw_cli-linux-x86-9.5.3.tgz'"
        
        sudo "sh -c 'cd /opt ; mkdir -p 3ware_tools/x86_64 ; cd 3ware_tools/x86_64 ; tar zxf /tmp/tw_cli-linux-x86_64-9.5.3.tgz'"
        sudo "sh -c 'cd /opt ; mkdir -p 3ware_tools/i686 ; cd 3ware_tools/i686 ; tar zxf /tmp/tw_cli-linux-x86-9.5.3.tgz ; ln -sf /opt/3ware_tools/i686 /opt/3ware_tools/i386'"
        sudo "ln -sf /opt/3ware_tools/$(uname -m) /opt/3ware"
        
        sudo "chmod 755 /opt/3ware/tw_cli"
        sudo "ln -sf /opt/3ware/tw_cli /usr/local/bin/"
      end

    end
  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.027 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.026 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.025 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.024 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.023 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.022 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.021 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.020 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.019 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.018 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.017 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.016 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.015 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.014 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.013 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.012 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.011 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.010 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.009 lib/deprec/recipes/raid/amcc_3ware.rb
le1t0-deprec-2.1.6.008 lib/deprec/recipes/raid/amcc_3ware.rb