vagrant-omnibus 1.1.0 → 1.1.1

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.
@@ -1,8 +1,19 @@
1
+ ## 1.1.1 (September 4, 2013)
2
+
3
+ BUG FIXES:
4
+
5
+ * PR [#28][]: Include OpenStack provider into the list of working providers. ([@srenatus][])
6
+ * PR [#32][], Issue [#31][]: No need to do sudo in sudo ([@matsu911][])
7
+ * PR [#32][], Issue [#32][]: Fix the curl line to install the requested Chef version ([@tmatilai][])
8
+ * PR [#37][]: Document that newer than v1.1.x Vagrant is fine, too. ([@tmatilai][])
9
+ * PR [#38][]: Drop unneeded ConfigValidate action call ([@tmatilai][])
10
+ * Issue [#27][]: Properly shell escape version strings ([@schisamo][])
11
+
1
12
  ## 1.1.0 (June 21, 2013)
2
13
 
3
14
  FEATURES:
4
15
 
5
- * PR [#23][], Issues [#17][], [#19][], [#21][], [#23][]: Support for all Vagrant providers that hook into `Vagrant::Action::Builtin::Provision` for provisioning. ([@smdahlen][], [@michfield][], [@rjocoleman][])
16
+ * PR [#23][], Issue [#17][], Issue [#19][], Issue [#21][], Issue [#23][]: Support for all Vagrant providers that hook into `Vagrant::Action::Builtin::Provision` for provisioning. ([@smdahlen][], [@michfield][], [@rjocoleman][])
6
17
  * Issue [#15][]: Multi-VM Vagrantfiles are now fully supported. A global `omnibus.chef_version` will install the same version of Chef on all VMs OR declare a separate Chef version in the config block for each individual VM! ([@smdahlen][], [@schisamo][])
7
18
  * PR [#10][]: Optionally change the location of `install.sh` via the `OMNIBUS_INSTALL_URL` environment variable. Default is still https://www.opscode.com/chef/install.sh. , ([@petecheslock][])
8
19
 
@@ -16,10 +27,10 @@ IMPROVEMENTS:
16
27
 
17
28
  BUG FIXES:
18
29
 
19
- * Fixes [#2][]: Convert `Gem::Version` returned by `#retrieve_latest_chef_version` to a string. ([@schisamo][])
20
- * Fixes [#6][]: RubyGems 2.0 compat: use #empty? to check for results. ([@schisamo][])
21
- * Fixes [#7][]: Ensure 'vagrant-rackspace/action' is loaded. ([@schisamo][])
22
- * Fixes [#8][]: Trigger plugin if machine state is `:active`. ([@schisamo][])
30
+ * Issue [#2][]: Convert `Gem::Version` returned by `#retrieve_latest_chef_version` to a string. ([@schisamo][])
31
+ * Issue [#6][]: RubyGems 2.0 compat: use #empty? to check for results. ([@schisamo][])
32
+ * Issue [#7][]: Ensure 'vagrant-rackspace/action' is loaded. ([@schisamo][])
33
+ * Issue [#8][]: Trigger plugin if machine state is `:active`. ([@schisamo][])
23
34
 
24
35
  ## 1.0.1 (April 17, 2013)
25
36
 
@@ -39,20 +50,29 @@ BUG FIXES:
39
50
 
40
51
  * The initial release.
41
52
  <!--- The following link definition list is generated by PimpMyChangelog --->
42
- [#2]: https://github.com/schisamo/vagrant/issues/2
43
- [#3]: https://github.com/schisamo/vagrant/issues/3
44
- [#4]: https://github.com/schisamo/vagrant/issues/4
45
- [#6]: https://github.com/schisamo/vagrant/issues/6
46
- [#7]: https://github.com/schisamo/vagrant/issues/7
47
- [#8]: https://github.com/schisamo/vagrant/issues/8
48
- [#10]: https://github.com/schisamo/vagrant/issues/10
49
- [#15]: https://github.com/schisamo/vagrant/issues/15
50
- [#17]: https://github.com/schisamo/vagrant/issues/17
51
- [#19]: https://github.com/schisamo/vagrant/issues/19
52
- [#21]: https://github.com/schisamo/vagrant/issues/21
53
- [#23]: https://github.com/schisamo/vagrant/issues/23
53
+ [#2]: https://github.com/schisamo/vagrant-omnibus/issues/2
54
+ [#3]: https://github.com/schisamo/vagrant-omnibus/issues/3
55
+ [#4]: https://github.com/schisamo/vagrant-omnibus/issues/4
56
+ [#6]: https://github.com/schisamo/vagrant-omnibus/issues/6
57
+ [#7]: https://github.com/schisamo/vagrant-omnibus/issues/7
58
+ [#8]: https://github.com/schisamo/vagrant-omnibus/issues/8
59
+ [#10]: https://github.com/schisamo/vagrant-omnibus/issues/10
60
+ [#15]: https://github.com/schisamo/vagrant-omnibus/issues/15
61
+ [#17]: https://github.com/schisamo/vagrant-omnibus/issues/17
62
+ [#19]: https://github.com/schisamo/vagrant-omnibus/issues/19
63
+ [#21]: https://github.com/schisamo/vagrant-omnibus/issues/21
64
+ [#23]: https://github.com/schisamo/vagrant-omnibus/issues/23
65
+ [#27]: https://github.com/schisamo/vagrant-omnibus/issues/27
66
+ [#28]: https://github.com/schisamo/vagrant-omnibus/issues/28
67
+ [#31]: https://github.com/schisamo/vagrant-omnibus/issues/31
68
+ [#32]: https://github.com/schisamo/vagrant-omnibus/issues/32
69
+ [#37]: https://github.com/schisamo/vagrant-omnibus/issues/37
70
+ [#38]: https://github.com/schisamo/vagrant-omnibus/issues/38
71
+ [@matsu911]: https://github.com/matsu911
54
72
  [@michfield]: https://github.com/michfield
55
73
  [@petecheslock]: https://github.com/petecheslock
56
74
  [@rjocoleman]: https://github.com/rjocoleman
57
75
  [@schisamo]: https://github.com/schisamo
58
- [@smdahlen]: https://github.com/smdahlen
76
+ [@smdahlen]: https://github.com/smdahlen
77
+ [@srenatus]: https://github.com/srenatus
78
+ [@tmatilai]: https://github.com/tmatilai
data/Gemfile CHANGED
@@ -6,13 +6,13 @@ group :development do
6
6
  # We depend on Vagrant for development, but we don't add it as a
7
7
  # gem dependency because we expect to be installed within the
8
8
  # Vagrant environment itself using `vagrant plugin`.
9
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.2.1"
9
+ gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => "v1.2.7"
10
10
  end
11
11
 
12
12
  group :test do
13
- gem "vagrant-digitalocean", "~> 0.2.0"
14
- gem "vagrant-aws", "~> 0.2.2"
15
- gem "vagrant-rackspace", "~> 0.1.1"
13
+ gem "vagrant-digitalocean", "~> 0.3.0"
14
+ gem "vagrant-aws", "~> 0.3.0"
15
+ gem "vagrant-rackspace", "~> 0.1.2"
16
16
  end
17
17
 
18
18
  group :docs do
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # vagrant-omnibus
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/vagrant-omnibus.png)](https://badge.fury.io/rb/vagrant-omnibus.png)
3
+ [![Gem Version](https://badge.fury.io/rb/vagrant-omnibus.png)](https://rubygems.org/gems/vagrant-omnibus)
4
4
  [![Build Status](https://travis-ci.org/schisamo/vagrant-omnibus.png?branch=master)](https://travis-ci.org/schisamo/vagrant-omnibus)
5
5
  [![Dependency Status](https://gemnasium.com/schisamo/vagrant-omnibus.png)](https://gemnasium.com/schisamo/vagrant-omnibus)
6
6
  [![Code Climate](https://codeclimate.com/github/schisamo/vagrant-omnibus.png)](https://codeclimate.com/github/schisamo/vagrant-omnibus)
@@ -20,10 +20,11 @@ known to work with the following
20
20
  plugin)
21
21
  * VMWare Fusion (can be [purchased from Hashicorp](http://www.vagrantup.com/vmware))
22
22
  * LXC (ships in [vagrant-lxc](https://github.com/fgrehm/vagrant-lxc))
23
+ * OpenStack (ships in [vagrant-openstack-plugin](https://github.com/cloudbau/vagrant-openstack-plugin))
23
24
 
24
25
  ## Installation
25
26
 
26
- Ensure you have downloaded and installed Vagrant 1.1.x from the
27
+ Ensure you have downloaded and installed Vagrant 1.1 or newer from the
27
28
  [Vagrant downloads page](http://downloads.vagrantup.com/).
28
29
 
29
30
  Installation is performed in the prescribed manner for Vagrant 1.1 plugins.
@@ -14,6 +14,8 @@
14
14
  # limitations under the License.
15
15
  #
16
16
 
17
+ require 'shellwords'
18
+
17
19
  module VagrantPlugins
18
20
  module Omnibus
19
21
  module Action
@@ -63,11 +65,12 @@ module VagrantPlugins
63
65
  end
64
66
 
65
67
  def install(version)
68
+ shell_escaped_version = Shellwords.escape(version)
66
69
  command = <<-INSTALL_OMNIBUS
67
70
  if command -v wget &>/dev/null; then
68
- wget -qO- #{INSTALL_SH} | sudo bash -s -- -v #{version}
71
+ wget -qO- #{INSTALL_SH} | bash -s -- -v #{shell_escaped_version}
69
72
  elif command -v curl &>/dev/null; then
70
- curl -L #{INSTALL_SH} -v #{version} | sudo bash
73
+ curl -L #{INSTALL_SH} | bash -s -- -v #{shell_escaped_version}
71
74
  else
72
75
  echo "Neither wget nor curl found. Please install one." >&2
73
76
  exit 1
@@ -31,8 +31,8 @@ module VagrantPlugins
31
31
  DESC
32
32
 
33
33
  action_hook(:install_chef, Plugin::ALL_ACTIONS) do |hook|
34
- require_relative "action"
35
- hook.after(Vagrant::Action::Builtin::Provision, Action.install_chef)
34
+ require_relative "action/install_chef"
35
+ hook.after(Vagrant::Action::Builtin::Provision, Action::InstallChef)
36
36
 
37
37
  # The AWS provider uses a non-standard Provision action on initial
38
38
  # creation:
@@ -40,7 +40,7 @@ module VagrantPlugins
40
40
  # https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/action.rb#L105
41
41
  #
42
42
  if VagrantPlugins.const_defined?("AWS")
43
- hook.after(VagrantPlugins::AWS::Action::TimedProvision, Action.install_chef)
43
+ hook.after(VagrantPlugins::AWS::Action::TimedProvision, Action::InstallChef)
44
44
  end
45
45
  end
46
46
 
@@ -16,6 +16,6 @@
16
16
 
17
17
  module VagrantPlugins
18
18
  module Omnibus
19
- VERSION = "1.1.0"
19
+ VERSION = "1.1.1"
20
20
  end
21
21
  end
@@ -6,7 +6,7 @@ require 'vagrant-omnibus'
6
6
  require 'vagrant-aws'
7
7
 
8
8
  Vagrant.configure("2") do |config|
9
- config.omnibus.chef_version = '11.4.0'
9
+ config.omnibus.chef_version = "11.4.0"
10
10
 
11
11
  config.vm.box = "dummy"
12
12
  config.vm.provider :aws do |aws, override|
@@ -16,7 +16,6 @@ Vagrant.configure("2") do |config|
16
16
 
17
17
  aws.instance_type = "m1.large"
18
18
  aws.ami = "ami-2efa9d47" # Ubuntu 12.04 LTS 64-bit instance root store
19
- aws.ssh_username = "ubuntu"
20
19
 
21
20
  override.ssh.username = "ubuntu"
22
21
  override.ssh.private_key_path = "~/.ssh/id_rsa"
@@ -22,7 +22,7 @@ Vagrant.configure("2") do |config|
22
22
  old_chef_config.vm.box = "opscode-centos-6.4"
23
23
  old_chef_config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box"
24
24
 
25
- old_chef_config.omnibus.chef_version = "10.24.0"
25
+ old_chef_config.omnibus.chef_version = '10.24.0'
26
26
 
27
27
  old_chef_config.vm.provision :chef_solo do |chef|
28
28
  chef.cookbooks_path = File.expand_path("../../../support/cookbooks", __FILE__)
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-omnibus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Seth Chisamore
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-06-21 00:00:00.000000000 Z
12
+ date: 2013-09-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rspec
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -71,7 +78,6 @@ files:
71
78
  - Rakefile
72
79
  - TODO.md
73
80
  - lib/vagrant-omnibus.rb
74
- - lib/vagrant-omnibus/action.rb
75
81
  - lib/vagrant-omnibus/action/install_chef.rb
76
82
  - lib/vagrant-omnibus/config.rb
77
83
  - lib/vagrant-omnibus/plugin.rb
@@ -90,26 +96,33 @@ files:
90
96
  homepage: https://github.com/schisamo/vagrant-omnibus
91
97
  licenses:
92
98
  - Apache 2.0
93
- metadata: {}
94
99
  post_install_message:
95
100
  rdoc_options: []
96
101
  require_paths:
97
102
  - lib
98
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
+ none: false
99
105
  requirements:
100
106
  - - ! '>='
101
107
  - !ruby/object:Gem::Version
102
108
  version: '0'
109
+ segments:
110
+ - 0
111
+ hash: -1765446916124495526
103
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
104
114
  requirements:
105
115
  - - ! '>='
106
116
  - !ruby/object:Gem::Version
107
117
  version: '0'
118
+ segments:
119
+ - 0
120
+ hash: -1765446916124495526
108
121
  requirements: []
109
122
  rubyforge_project:
110
- rubygems_version: 2.0.3
123
+ rubygems_version: 1.8.23
111
124
  signing_key:
112
- specification_version: 4
125
+ specification_version: 3
113
126
  summary: A Vagrant plugin that ensures the desired version of Chef is installed via
114
127
  the platform-specific Omnibus packages.
115
128
  test_files:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MzNiOTFhOWM4OGRiODViMjA2Zjc5NzY0ZjFiMTIyZGFmMWFmOWJlYg==
5
- data.tar.gz: !binary |-
6
- N2Y5NTYwODVmODc0YmQwMjRjYjM4YmQ0YjE2Y2JhMGJlOTcwYTc1NQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ODYyNjY0ZDZmM2YxMmMzZTdlYjQyOTk4YzhiY2VmNWNjNzg3ZTAxYmVkZmZh
10
- MzdjZDRiNjI3ZGMzMThhODhmNDMyNjNlZjliZTk2NjJjNGU5NGIzYzY5ZDEy
11
- ODU0Y2ViMzU1ZWZjMTkxOWVkY2ZhMDU5YzlkMWViNjRjZmNhNGQ=
12
- data.tar.gz: !binary |-
13
- MGYzYmJjY2IwNDYyNjNlMDVkOWFlOThlNTVhYWI3NjAyODk4NDczMDM0Y2Ux
14
- YzBmODQ4YTc5NDJjNjdhYTcyMjVkMTAyZjAzYWVjMjM0YzQxNGExZjIxMzkw
15
- ZjU0ZTE1OGQ4YjM3YmM2M2ZlZjM2NzllZDE4MjI2ZTU5NzE4YmI=
@@ -1,30 +0,0 @@
1
- #
2
- # Copyright (c) 2013, Seth Chisamore
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require "vagrant-omnibus/action/install_chef"
18
-
19
- module VagrantPlugins
20
- module Omnibus
21
- module Action
22
- def self.install_chef
23
- @install_chef ||= ::Vagrant::Action::Builder.new.tap do |b|
24
- b.use ::Vagrant::Action::Builtin::ConfigValidate
25
- b.use InstallChef
26
- end
27
- end
28
- end
29
- end
30
- end