Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Fix gem-based bootstrap on Ubuntu 14.04 and up #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/knife-solo/bootstraps/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ def debianoid_gem_install
run_command("sudo apt-get update")

ui.msg "Installing required packages..."
@packages = %w(ruby ruby-dev libopenssl-ruby irb
@packages = %w(ruby ruby-dev libruby irb
build-essential wget ssl-cert rsync)
run_command <<-BASH
result = run_command <<-BASH
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes install #{package_list}
BASH

if result.exit_code != 0
ui.fatal "Failed to install packages. Try installing them manually: #{@packages.join(' ')}"
exit 1
end

gem_install
end

Expand Down