solokit 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -2
- data/lib/chef.rb +3 -2
- data/lib/solokit/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
+
0.1.7
|
2
|
+
|
3
|
+
Support selecting the old version of configs when running apt-get upgrade.
|
4
|
+
|
5
|
+
0.1.6
|
6
|
+
|
7
|
+
Fixed stalled chef installation on Ubuntu 10.04.
|
8
|
+
|
1
9
|
0.1.5
|
2
10
|
|
3
|
-
Added "reverse_rsync" on the SSH class so that you can download files from
|
4
|
-
servers.
|
11
|
+
Added "reverse_rsync" on the SSH class so that you can download files from servers.
|
5
12
|
|
6
13
|
0.1.4
|
7
14
|
|
data/lib/chef.rb
CHANGED
@@ -7,10 +7,11 @@ module Solokit
|
|
7
7
|
@ssh = SSH.new(ip, user, debug_ssh)
|
8
8
|
end
|
9
9
|
|
10
|
-
def install
|
10
|
+
def install(use_old_config = false)
|
11
11
|
return true if installed?
|
12
12
|
puts "#{@name} (#{@env}): Installing chef..."
|
13
|
-
|
13
|
+
dpkg_options = use_old_config ? '--force-confold' : '--force-confnew'
|
14
|
+
@ssh.run(%{export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get upgrade -y -o Dpkg::Options::="#{dpkg_options}" && apt-get install -o Dpkg::Options::="#{dpkg_options}" ruby ruby1.8-dev libopenssl-ruby wget rsync build-essential -y && wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz && tar xfz rubygems-1.3.7.tgz && cd rubygems-1.3.7 && ruby setup.rb && cd .. && rm -rf rubygems-1.3.7* && ln -s /usr/bin/gem1.8 /usr/bin/gem && gem install chef ohai --no-ri --no-rdoc})
|
14
15
|
end
|
15
16
|
|
16
17
|
def upload(root = "/")
|
data/lib/solokit/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-06 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|