vagrant-linode 0.2.6 → 0.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d69d729a4e0d62d3e6a9e7b0b21ecdb80995b37b
4
- data.tar.gz: d607202c4ff6ef28c01612ca7888cf20ad91cc46
3
+ metadata.gz: 443c9bd53fdfdbac32073c829fff80089a95b950
4
+ data.tar.gz: acac7d5845129390b7d32c5f5067c117db7fe2f0
5
5
  SHA512:
6
- metadata.gz: dc76f6878e29e12e0ed2608b07bae18938bdfb843be758a70439f08b1903bea6fd2b456c54a5acbebd8580798cf66d1d5108d124df0dc235c60d5d9b91ed2a3e
7
- data.tar.gz: eaeb9a36d82212a329d25338fdd70af8b972d97641ff431adb8ae78d18ad9c206016dc0df06c601af40d4f346c6be05be66fa32a7a027e84127e1781bac2f3a2
6
+ metadata.gz: 0445248a9412d7313ffe3c222e9603ddc89d4f8e7b49f9e572ced1557230f555f2cd6ff3a00596119972b6110c5aba7c2df42400cc5524f8d6cb73641cfde49b
7
+ data.tar.gz: 21a2e6612a0710227578152f8f0b98ed6189245bf212fcdb0c74056982aec18661b51735a9fcec85adc1c8ab8b34b84b459218e18c0d45e3b31cebf847693dd7
data/README.md CHANGED
@@ -40,9 +40,9 @@ Vagrant.configure('2') do |config|
40
40
  override.vm.box_url = "https://github.com/displague/vagrant-linode/raw/master/box/linode.box"
41
41
 
42
42
  provider.api_key = 'API_KEY'
43
- provider.distribution = 'Ubuntu 14.04 LTS'
43
+ provider.distribution = 'Ubuntu 16.04 LTS'
44
44
  provider.datacenter = 'newark'
45
- provider.plan = 'Linode 1024'
45
+ provider.plan = 'Linode 2048'
46
46
  # provider.planid = <int>
47
47
  # provider.paymentterm = <*1*,12,24>
48
48
  # provider.datacenterid = <int>
@@ -76,7 +76,7 @@ The following attributes are available to further configure the provider:
76
76
  - `provider.datacenter` - A string representing the datacenter to create the new
77
77
  linode in. It defaults to `dallas`.
78
78
  - `provider.plan` - A string representing the size to use when creating a
79
- new linode (e.g. `Linode 2048`). It defaults to `Linode 1024`.
79
+ new linode (e.g. `Linode 4096`). It defaults to `Linode 2048`.
80
80
  - `provider.private_networking` - A boolean flag indicating whether to enable
81
81
  a private network interface. It defaults to `false`.
82
82
  - `provider.ssh_key_name` - A string representing the name to use when creating
@@ -99,21 +99,21 @@ attribute is `true`.
99
99
  Each Linode Tier has been assigned a Plan Identifcation Number.
100
100
  Current Plan-ID table follows:
101
101
 
102
- | PlanID | Plan |
103
- |:------- |:------------------------- |
104
- | 1 | 1GB Plan (Linode 1024) |
105
- | 2 | 2GB Plan (Linode 2048) |
106
- | 4 | 4GB Plan (Linode 4096) |
107
- | 6 | 8GB Plan (Linode 8192) |
108
- | 7 | 16GB Plan (Linode 16384) |
109
- | 8 | 32GB Plan (Linode 32768) |
110
- | 9 | 48GB Plan (Linode 49152) |
111
- | 10 | 64GB Plan (Linode 65536) |
112
- | 12 | 96GB Plan (Linode 98304) |
102
+ | PlanID | Plan |
103
+ |:------- |:--------------------------- |
104
+ | 1 | 2GB Plan (Linode 2048) |
105
+ | 2 | 4GB Plan (Linode 4096) |
106
+ | 4 | 8GB Plan (Linode 8192) |
107
+ | 6 | 12GB Plan (Linode 12288) |
108
+ | 7 | 24GB Plan (Linode 24576) |
109
+ | 8 | 48GB Plan (Linode 49152) |
110
+ | 9 | 64GB Plan (Linode 65536) |
111
+ | 10 | 80GB Plan (Linode 81920) |
112
+ | 12 | 120GB Plan (Linode 122880) |
113
113
 
114
114
  This can be obtained through vagrant with:
115
115
  ```
116
- vagrant linode plans
116
+ vagrant linode plans <machine_name>
117
117
  ```
118
118
 
119
119
  Or using curl:
data/box/linode.box CHANGED
Binary file
@@ -20,7 +20,7 @@ Feature: vagrant-linode fog tests
20
20
  provider.server_name = 'vagrant-provisioned-server'
21
21
  provider.api_key = ENV['LINODE_API_KEY']
22
22
  provider.datacenter = 'dallas'
23
- provider.plan = /Linode 1024/
23
+ provider.plan = /Linode 2048/
24
24
  provider.distribution = /Ubuntu/
25
25
  provider.public_key_path = "~/.ssh/id_rsa.pub"
26
26
  end
@@ -27,7 +27,7 @@ Feature: vagrant-linode fog tests
27
27
  provider.server_name = 'vagrant-single-server'
28
28
  provider.api_key = ENV['LINODE_API_KEY']
29
29
  linode.datacenter = ENV['LINODE_DATACENTER'].downcase.to_sym
30
- linode.plan = /Linode 1024/
30
+ linode.plan = /Linode 2048/
31
31
  linode.distribution = /Ubuntu/
32
32
  linode.public_key_path = "~/.ssh/id_rsa.pub" unless Fog.mock?
33
33
  end
@@ -56,7 +56,7 @@ Scenario: Create a single server (linode_compute_url)
56
56
  provider.server_name = 'vagrant-single-server'
57
57
  provider.api_key = ENV['LINODE_API_KEY']
58
58
  provider.api_url = "https://api.linode.com/"
59
- provider.plan = /Linode 1024/
59
+ provider.plan = /Linode 2048/
60
60
  provider.distribution = /Ubuntu/
61
61
  provider.public_key_path = "~/.ssh/id_rsa.pub" unless Fog.mock?
62
62
  end
@@ -97,8 +97,8 @@ module VagrantPlugins
97
97
  plan_id = plan.planid
98
98
  else
99
99
  plans = @client.avail.linodeplans
100
- plan = plans.find { |p| p.planid == @machine.provider_config.planid }
101
- fail Errors::PlanID, plan: @machine.provider_config.plan if plan.nil?
100
+ plan = plans.find { |p| p.planid.to_i == @machine.provider_config.planid.to_i }
101
+ fail Errors::PlanID, plan: @machine.provider_config.planid if plan.nil?
102
102
  plan_id = @machine.provider_config.planid
103
103
  end
104
104
 
@@ -125,7 +125,7 @@ module VagrantPlugins
125
125
  datacenterid: datacenter_id,
126
126
  paymentterm: @machine.provider_config.paymentterm || 1
127
127
  )
128
- env[:ui].info I18n.t('vagrant_linode.info.created', linodeid: result['linodeid'])
128
+ env[:ui].info I18n.t('vagrant_linode.info.created', linodeid: result['linodeid'], label: (@machine.provider_config.label or "linode#{result['linodeid']}"))
129
129
 
130
130
  # @client.linode.job.list(:linodeid => result['linodeid'], :pendingonly => 1)
131
131
  # assign the machine id for reference in other commands
@@ -68,7 +68,7 @@ module VagrantPlugins
68
68
  @image = nil if @image == UNSET_VALUE
69
69
  @distributionid = nil if @distributionid == UNSET_VALUE
70
70
  @distribution = nil if @distribution == UNSET_VALUE
71
- @distribution = 'Ubuntu 14.04 LTS' if @distribution.nil? and @distributionid.nil? and @imageid.nil? and @image.nil?
71
+ @distribution = 'Ubuntu 16.04 LTS' if @distribution.nil? and @distributionid.nil? and @imageid.nil? and @image.nil?
72
72
  @stackscriptid = nil if @stackscriptid == UNSET_VALUE
73
73
  @stackscript = nil if @stackscript == UNSET_VALUE
74
74
  @stackscript_udf_responses = nil if @stackscript_udf_responses == UNSET_VALUE
@@ -77,7 +77,7 @@ module VagrantPlugins
77
77
  @datacenter = 'dallas' if @datacenter.nil? and @datacenterid.nil?
78
78
  @planid = nil if @planid == UNSET_VALUE
79
79
  @plan = nil if @plan == UNSET_VALUE
80
- @plan = 'Linode 1024' if @plan.nil? and @planid.nil?
80
+ @planid = '1' if @plan.nil? and @planid.nil?
81
81
  @paymentterm = '1' if @paymentterm == UNSET_VALUE
82
82
  @private_networking = false if @private_networking == UNSET_VALUE
83
83
  @ca_path = nil if @ca_path == UNSET_VALUE
@@ -110,19 +110,13 @@ module VagrantPlugins
110
110
  errors << I18n.t('vagrant_linode.config.distributionid_or_distribution')
111
111
  end
112
112
 
113
- <<<<<<< 879127420e478cc36b502abe9dd6d88b7d3ccc40
114
113
  if @stackscriptid and @stackscript
115
114
  errors << I18n.t('vagrant_linode.config.stackscriptid_or_stackscript')
116
115
  end
117
116
 
118
- if @datacenterid and @datacenter
119
- errors << I18n.t('vagrant_linode.config.datacenterid_or_datacenter')
120
- end
121
- =======
122
117
  if @datacenterid and @datacenter
123
118
  errors << I18n.t('vagrant_linode.config.datacenterid_or_datacenter')
124
119
  end
125
- >>>>>>> nagging white-space clean-up in config.rb
126
120
 
127
121
  if @kernelid and @kernel
128
122
  errors << I18n.t('vagrant_linode.config.kernelid_or_kernel')
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Linode
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -6,7 +6,7 @@ en:
6
6
  already_active: "Linode is already active"
7
7
  already_off: "Linode is already off"
8
8
  creating: "Creating a new linode..."
9
- created: "Created a new linode... %{linodeid}"
9
+ created: "Created a new linode... %{linodeid}, https://manager.linode.com/linodes/dashboard/%{label}"
10
10
  booting: "Booting Linode %{linodeid} ..."
11
11
  linode_ip: "Assigned IP address: %{ip}"
12
12
  linode_private_ip: "Private IP address: %{ip}"
@@ -13,7 +13,7 @@ describe VagrantPlugins::Linode::Config do
13
13
  its(:api_url) { should be_nil }
14
14
  its(:distribution) { should eq(/Ubuntu/) }
15
15
  its(:datacenter) { should eq(/dallas/) }
16
- its(:plan) { should eq(/1024/) }
16
+ its(:plan) { should eq(/2048/) }
17
17
  its(:paymentterm) { should eq(/1/) }
18
18
  its(:private_networking) { should eq(/Ubuntu/) }
19
19
  its(:ca_path) { should eql(vagrant_public_key) }
data/test/Vagrantfile CHANGED
@@ -14,7 +14,7 @@ Vagrant.configure('2') do |config|
14
14
  provider.ssh_key_name = 'Test Key'
15
15
  provider.distribution = 'Debian 8'
16
16
  provider.datacenter = 'newark'
17
- provider.plan = '1024'
17
+ provider.plan = '2048'
18
18
  provider.label = 'vagrant-'+Time.new.strftime("%F%T").gsub(/[^0-9]/,'')
19
19
 
20
20
  # Disk Image Sizes (Optional configuration)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-linode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marques Johansson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-14 00:00:00.000000000 Z
12
+ date: 2016-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: linodeapi