solokit 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -3,7 +3,7 @@ A toolkit for provisioning (ubuntu-)servers using chef-solo.
3
3
  Solokit
4
4
  ---
5
5
 
6
- * A set of wrappers around SSH and Chef Solo.
6
+ * A set of wrappers around SSH and Chef Solo for getting cookbooks and recipes to servers and running them.
7
7
  * Code for setting up user accounts (optionally setting passwords, ssh-keys and sudo access).
8
8
  * Uses nesting to override configuration and cookbooks.
9
9
 
@@ -14,7 +14,7 @@ Solokit includes some defaults so that you don't have to repeat the same things
14
14
 
15
15
  An environment can be anything from one server to a complete cluster. Within an environment you can run specific configuration for each server, but Solokit defaults to "server.json".
16
16
 
17
- For each layer, Solokit looks for a directory structure like this:
17
+ For each layer*, Solokit looks for a directory structure like this:
18
18
 
19
19
  cookbooks/upstream # Unchanged cookbooks downloaded from opscode or other upstream source.
20
20
  cookbooks/site # Changes or entierly new cookbooks for Solokit, your project or env.
@@ -22,6 +22,8 @@ For each layer, Solokit looks for a directory structure like this:
22
22
  chef/server.json # Default config, just calls roles/base.rb.
23
23
  chef/roles/base.rb # Base configuration
24
24
 
25
+ *Except for within an environment where all cookbooks are considered site-cookbooks (example path: envs/test/cookbooks).
26
+
25
27
  Usage
26
28
  ---
27
29
 
@@ -73,7 +75,7 @@ Add user configuration to users.yml (optional, but you need to provide a chef/ro
73
75
  Add keys below "public_keys" that have names ending in ".pub".
74
76
 
75
77
  mkdir -p public_keys
76
- echo "your key" > public_keys/your_key@computer.pub
78
+ echo "your key" > public_keys/user@computer.pub
77
79
 
78
80
  By default this setup assumes that you can login to root on the server using your ssh key but Solokit also supports running chef as a normal user (with some modifications to solo.rb).
79
81
 
data/lib/chef.rb CHANGED
@@ -10,7 +10,7 @@ module Solokit
10
10
  def install
11
11
  return true if installed?
12
12
  puts "#{@name} (#{@env}): Installing chef..."
13
- @ssh.run('export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get upgrade -y && apt-get install 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')
13
+ @ssh.run('export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confnew" && apt-get install -o Dpkg::Options::="--force-confnew" 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
14
  end
15
15
 
16
16
  def upload(root = "/")
@@ -1,3 +1,3 @@
1
1
  module Solokit
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
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-06-26 00:00:00 +02:00
18
+ date: 2011-08-05 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  requirements: []
140
140
 
141
141
  rubyforge_project:
142
- rubygems_version: 1.5.3
142
+ rubygems_version: 1.6.2
143
143
  signing_key:
144
144
  specification_version: 3
145
145
  summary: A toolkit for provisioning (ubuntu-)servers using chef-solo.