berkshelf-api 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +36 -10
  2. data/lib/berkshelf/api/version.rb +1 -1
  3. metadata +3 -3
data/README.md CHANGED
@@ -6,6 +6,42 @@ A server which indexes cookbooks from various sources and hosts it over a REST A
6
6
 
7
7
  ## Installation
8
8
 
9
+ The API server can be installed in two ways; from a Chef Cookbook (recommended) and from a Rubygem.
10
+
11
+ ### Cookbook install
12
+
13
+ #### Basic
14
+
15
+ 1. Select a [release](https://github.com/berkshelf/berkshelf-api/releases) and download it's cookbooks artifact (`cookbooks.tar.gz`).
16
+ 2. Upload the cookbooks to your Chef Server if you're using Chef Client or just give them to Chef Solo if that's your thing.
17
+ 3. Add "recipe[berkshelf-api::default]" to your node's run_list and run Chef.
18
+
19
+ #### Express
20
+
21
+ Install and configure [Chef/Knife](https://github.com/opscode/chef) and [Berkflow](https://github.com/reset/berkflow) on your machine.
22
+
23
+ Create an environment
24
+
25
+ $ knife environment create berks-api-production -d
26
+
27
+ Bootstrap a server into that environment
28
+
29
+ $ knife ec2 server create -I ami-22e08b12 -f t1.micro -E berks-api-production -r "recipe[organization-base::default]" -G ssh-admin,http-https --ssh-user ubuntu
30
+
31
+ Install the cookbooks into your environment
32
+
33
+ $ blo in https://github.com/berkshelf/berkshelf-api/releases/download/v1.2.1/cookbooks.tar.gz
34
+
35
+ Add the recipe to your new node's run_list
36
+
37
+ $ knife node run_list add i-c8cd9ac1 "recipe[berkshelf-api::default]"
38
+
39
+ Update the machine you bootstrapped to the latest version of Berkshelf-API
40
+
41
+ $ blo up berks-api-production berkshelf-api 1.2.1
42
+
43
+ ### Gem install
44
+
9
45
  $ gem install berkshelf-api
10
46
 
11
47
  ## Running the server
@@ -23,8 +59,6 @@ Berkshelf-API is tested on Ruby 1.9.3, 2.0.0, and JRuby 1.7+.
23
59
 
24
60
  Ruby 1.9 mode is required on all interpreters.
25
61
 
26
- Ruby 1.9.1 and 1.9.2 are not officially supported. If you encounter problems, please upgrade to Ruby 2.0 or 1.9.3.
27
-
28
62
  ## Configuring Endpoints
29
63
 
30
64
  You may configure the endpoints to index by editing the JSON configuration file (default: `#{ENV['HOME']}/.berkshelf/api-server/config.json`).
@@ -101,14 +135,6 @@ A local directory containing cookbooks.
101
135
  }
102
136
  ```
103
137
 
104
- ## Contributing
105
-
106
- 1. Fork it
107
- 2. Create your feature branch (`git checkout -b my-new-feature`)
108
- 3. Commit your changes (`git commit -am 'Add some feature'`)
109
- 4. Push to the branch (`git push origin my-new-feature`)
110
- 5. Create new Pull Request
111
-
112
138
  # Authors and Contributors
113
139
 
114
140
  * Jamie Winsor (<jamie@vialstudios.com>)
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module API
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkshelf-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-11 00:00:00.000000000 Z
13
+ date: 2014-04-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ridley
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  version: '0'
308
308
  segments:
309
309
  - 0
310
- hash: 212518528619481929
310
+ hash: -4426381928627942928
311
311
  requirements: []
312
312
  rubyforge_project:
313
313
  rubygems_version: 1.8.23