vagrant-aws 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.1 (April 16, 2013)
2
+
3
+ * Got rid of extranneous references to old SSH settings.
4
+
1
5
  # 0.2.0 (April 16, 2013)
2
6
 
3
7
  * Add support for `vagrant ssh -c` [GH-42]
@@ -29,16 +29,10 @@ module VagrantPlugins
29
29
  return nil
30
30
  end
31
31
 
32
- # Get the configuration
33
- region = machine.provider_config.region
34
- config = machine.provider_config.get_region_config(region)
35
-
36
32
  # Read the DNS info
37
33
  return {
38
34
  :host => server.dns_name || server.private_ip_address,
39
- :port => config.ssh_port,
40
- :private_key_path => config.ssh_private_key_path,
41
- :username => config.ssh_username
35
+ :port => 22
42
36
  }
43
37
  end
44
38
  end
@@ -28,7 +28,6 @@ module VagrantPlugins
28
28
  ami = region_config.ami
29
29
  availability_zone = region_config.availability_zone
30
30
  instance_type = region_config.instance_type
31
- ssh_port = region_config.ssh_port
32
31
  keypair = region_config.keypair_name
33
32
  private_ip_address = region_config.private_ip_address
34
33
  security_groups = region_config.security_groups
@@ -52,7 +51,6 @@ module VagrantPlugins
52
51
  env[:ui].info(" -- AMI: #{ami}")
53
52
  env[:ui].info(" -- Region: #{region}")
54
53
  env[:ui].info(" -- Availability Zone: #{availability_zone}") if availability_zone
55
- env[:ui].info(" -- SSH Port: #{ssh_port}") if ssh_port
56
54
  env[:ui].info(" -- Keypair: #{keypair}") if keypair
57
55
  env[:ui].info(" -- Subnet ID: #{subnet_id}") if subnet_id
58
56
  env[:ui].info(" -- Private IP: #{private_ip_address}") if private_ip_address
@@ -64,7 +62,6 @@ module VagrantPlugins
64
62
  :flavor_id => instance_type,
65
63
  :image_id => ami,
66
64
  :key_name => keypair,
67
- :ssh_port => ssh_port,
68
65
  :private_ip_address => private_ip_address,
69
66
  :subnet_id => subnet_id,
70
67
  :tags => tags,
@@ -65,23 +65,6 @@ module VagrantPlugins
65
65
  # @return [Array<String>]
66
66
  attr_accessor :security_groups
67
67
 
68
- # The SSH port used by the instance
69
- #
70
- # @return [int]
71
- attr_accessor :ssh_port
72
-
73
- # The path to the SSH private key to use with this EC2 instance.
74
- # This overrides the `config.ssh.private_key_path` variable.
75
- #
76
- # @return [String]
77
- attr_accessor :ssh_private_key_path
78
-
79
- # The SSH username to use with this EC2 instance. This overrides
80
- # the `config.ssh.username` variable.
81
- #
82
- # @return [String]
83
- attr_accessor :ssh_username
84
-
85
68
  # The subnet ID to launch the machine into (VPC).
86
69
  #
87
70
  # @return [String]
@@ -116,9 +99,6 @@ module VagrantPlugins
116
99
  @version = UNSET_VALUE
117
100
  @secret_access_key = UNSET_VALUE
118
101
  @security_groups = UNSET_VALUE
119
- @ssh_port = UNSET_VALUE
120
- @ssh_private_key_path = UNSET_VALUE
121
- @ssh_username = UNSET_VALUE
122
102
  @subnet_id = UNSET_VALUE
123
103
  @tags = {}
124
104
  @user_data = UNSET_VALUE
@@ -223,13 +203,6 @@ module VagrantPlugins
223
203
  # The security groups are empty by default.
224
204
  @security_groups = [] if @security_groups == UNSET_VALUE
225
205
 
226
- # The SSH values by default are nil, and the top-level config
227
- # `config.ssh` values are used.
228
- # The SSH port should be 22 if left unset.
229
- @ssh_port = 22 if @ssh_port == UNSET_VALUE
230
- @ssh_private_key_path = nil if @ssh_private_key_path == UNSET_VALUE
231
- @ssh_username = nil if @ssh_username == UNSET_VALUE
232
-
233
206
  # Subnet is nil by default otherwise we'd launch into VPC.
234
207
  @subnet_id = nil if @subnet_id == UNSET_VALUE
235
208
 
@@ -282,11 +255,6 @@ module VagrantPlugins
282
255
  end
283
256
 
284
257
  errors << I18n.t("vagrant_aws.config.ami_required") if config.ami.nil?
285
-
286
- if config.ssh_private_key_path && \
287
- !File.file?(File.expand_path(config.ssh_private_key_path, machine.env.root_path))
288
- errors << I18n.t("vagrant_aws.config.private_key_missing")
289
- end
290
258
  end
291
259
 
292
260
  { "AWS Provider" => errors }
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module AWS
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -25,8 +25,6 @@ describe VagrantPlugins::AWS::Config do
25
25
  its("region") { should == "us-east-1" }
26
26
  its("secret_access_key") { should be_nil }
27
27
  its("security_groups") { should == [] }
28
- its("ssh_private_key_path") { should be_nil }
29
- its("ssh_username") { should be_nil }
30
28
  its("subnet_id") { should be_nil }
31
29
  its("tags") { should == {} }
32
30
  its("user_data") { should be_nil }
@@ -41,7 +39,7 @@ describe VagrantPlugins::AWS::Config do
41
39
  [:access_key_id, :ami, :availability_zone, :instance_ready_timeout,
42
40
  :instance_type, :keypair_name,
43
41
  :region, :secret_access_key, :security_groups,
44
- :ssh_private_key_path, :ssh_username, :subnet_id, :tags,
42
+ :subnet_id, :tags,
45
43
  :use_iam_profile, :user_data].each do |attribute|
46
44
 
47
45
  it "should not default #{attribute} if overridden" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: 1824347495740521097
145
+ hash: -1807397397089966337
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements: