vagrant-softlayer 0.2.0 → 0.3.0
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 +7 -0
- data/.gitignore +17 -15
- data/CHANGELOG.md +18 -9
- data/Gemfile +12 -7
- data/README.md +247 -243
- data/contrib/README.md +11 -0
- data/contrib/vagrant-softlayer-boxes +408 -0
- data/lib/vagrant-softlayer/action/create_instance.rb +58 -54
- data/lib/vagrant-softlayer/action/join_load_balancer.rb +95 -95
- data/lib/vagrant-softlayer/action/resume_instance.rb +21 -0
- data/lib/vagrant-softlayer/action/setup_softlayer.rb +38 -37
- data/lib/vagrant-softlayer/action/suspend_instance.rb +21 -0
- data/lib/vagrant-softlayer/action/sync_folders.rb +1 -1
- data/lib/vagrant-softlayer/action/update_dns.rb +94 -94
- data/lib/vagrant-softlayer/action/wait_for_provision.rb +40 -40
- data/lib/vagrant-softlayer/action.rb +242 -208
- data/lib/vagrant-softlayer/config.rb +246 -229
- data/lib/vagrant-softlayer/version.rb +5 -5
- data/locales/en.yml +206 -170
- data/spec/vagrant-softlayer/config_spec.rb +261 -227
- data/vagrant-softlayer.gemspec +3 -1
- metadata +20 -31
data/locales/en.yml
CHANGED
@@ -1,170 +1,206 @@
|
|
1
|
-
en:
|
2
|
-
vagrant_softlayer:
|
3
|
-
config:
|
4
|
-
api_key_required: |-
|
5
|
-
The SoftLayer API key is required. Please specify it
|
6
|
-
using the SL_API_KEY environment variable or in the provider
|
7
|
-
section of the Vagrantfile:
|
8
|
-
|
9
|
-
config.vm.provider :softlayer do |sl|
|
10
|
-
sl.api_key = "my_API_key"
|
11
|
-
end
|
12
|
-
domain_required: |-
|
13
|
-
The domain of the SoftLayer instance is required.
|
14
|
-
Please specify it in the provider section of the Vagrantfile:
|
15
|
-
|
16
|
-
config.vm.provider :softlayer do |sl|
|
17
|
-
sl.domain = "example.com"
|
18
|
-
end
|
19
|
-
hostname_required: |-
|
20
|
-
The hostname of the SoftLayer instance is required.
|
21
|
-
Please specify it either with `config.vm.hostname` or
|
22
|
-
in the provider section of the Vagrantfile:
|
23
|
-
|
24
|
-
config.vm.hostname = "vagrant"
|
25
|
-
|
26
|
-
config.vm.provider :softlayer do |sl|
|
27
|
-
sl.hostname = "vagrant"
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
config.vm.provider :softlayer do |sl|
|
57
|
-
sl.
|
58
|
-
end
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
The SoftLayer instance is
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
SoftLayer instance
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
1
|
+
en:
|
2
|
+
vagrant_softlayer:
|
3
|
+
config:
|
4
|
+
api_key_required: |-
|
5
|
+
The SoftLayer API key is required. Please specify it
|
6
|
+
using the SL_API_KEY environment variable or in the provider
|
7
|
+
section of the Vagrantfile:
|
8
|
+
|
9
|
+
config.vm.provider :softlayer do |sl|
|
10
|
+
sl.api_key = "my_API_key"
|
11
|
+
end
|
12
|
+
domain_required: |-
|
13
|
+
The domain of the SoftLayer instance is required.
|
14
|
+
Please specify it in the provider section of the Vagrantfile:
|
15
|
+
|
16
|
+
config.vm.provider :softlayer do |sl|
|
17
|
+
sl.domain = "example.com"
|
18
|
+
end
|
19
|
+
hostname_required: |-
|
20
|
+
The hostname of the SoftLayer instance is required.
|
21
|
+
Please specify it either with `config.vm.hostname` or
|
22
|
+
in the provider section of the Vagrantfile:
|
23
|
+
|
24
|
+
config.vm.hostname = "vagrant"
|
25
|
+
|
26
|
+
config.vm.provider :softlayer do |sl|
|
27
|
+
sl.hostname = "vagrant"
|
28
|
+
end
|
29
|
+
img_guid_capacity_mutually_exclusive: |-
|
30
|
+
The disk capacity can only be specified when using an operating
|
31
|
+
system reference code and not when using a specific compute or
|
32
|
+
flex image guid. Please use one of the following options in the
|
33
|
+
provider section:
|
34
|
+
|
35
|
+
config.vm.provider :softlayer do |sl|
|
36
|
+
sl.image_guid = "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"
|
37
|
+
end
|
38
|
+
|
39
|
+
config.vm.provider :softlayer do |sl|
|
40
|
+
sl.operating_system = "UBUNTU_LATEST"
|
41
|
+
|
42
|
+
# Disk number 1 is reserved for SWAP space, see SoftLayer API
|
43
|
+
# CLI tool command 'sl cci create-options' for more info.
|
44
|
+
sl.disk_capacity = { 0 => 25, 2 => 100, 3 => 2000 }
|
45
|
+
end
|
46
|
+
img_guid_os_code_mutually_exclusive: |-
|
47
|
+
The image guid for a compute or flex image and the operating
|
48
|
+
system reference code cannot be used at the same time.
|
49
|
+
Please use only one of the following options in the provider
|
50
|
+
section:
|
51
|
+
|
52
|
+
config.vm.provider :softlayer do |sl|
|
53
|
+
sl.image_guid = "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"
|
54
|
+
end
|
55
|
+
|
56
|
+
config.vm.provider :softlayer do |sl|
|
57
|
+
sl.operating_system = "UBUNTU_LATEST"
|
58
|
+
end
|
59
|
+
lb_duplicate: |-
|
60
|
+
A load balancer service group has been specified multiple
|
61
|
+
times. Only one directive for any { :vip, :port } combination
|
62
|
+
is allowed.
|
63
|
+
lb_port_vip_required: |-
|
64
|
+
For joining a load balancer, you need to specify at least
|
65
|
+
virtual IP address, virtual server port and destination
|
66
|
+
port in the provider section of the Vagrantfile:
|
67
|
+
|
68
|
+
config.vm.provider :softlayer do |sl|
|
69
|
+
sl.join_load_balancer :port => 443, :vip => "1.1.1.1" do |service|
|
70
|
+
service.destination_port = 443
|
71
|
+
end
|
72
|
+
end
|
73
|
+
ssh_key_required: |-
|
74
|
+
At least an SSH key for the instance is required.
|
75
|
+
Please specify it, either using name or id, in the
|
76
|
+
provider section of the Vagrantfile:
|
77
|
+
|
78
|
+
config.vm.provider :softlayer do |sl|
|
79
|
+
sl.ssh_key = 1
|
80
|
+
end
|
81
|
+
username_required: |-
|
82
|
+
The SoftLayer username is required. Please specify it
|
83
|
+
using the SL_USERNAME environment variable or in the provider
|
84
|
+
section of the Vagrantfile:
|
85
|
+
|
86
|
+
config.vm.provider :softlayer do |sl|
|
87
|
+
sl.username = "my_username"
|
88
|
+
end
|
89
|
+
errors:
|
90
|
+
api_error: |-
|
91
|
+
Vagrant returned an exception while calling the SoftLayer API.
|
92
|
+
|
93
|
+
Exception class: %{class}
|
94
|
+
Exception message: %{message}
|
95
|
+
certificate_error: |-
|
96
|
+
The secure connection to the SoftLayer API has failed. This is
|
97
|
+
generally caused by the OpenSSL configuration associated with
|
98
|
+
the Ruby install being unaware of the system specific CA certs.
|
99
|
+
|
100
|
+
Please ensure that the SSL_CERT_FILE environment variable is set
|
101
|
+
with a path to a certificate authority.
|
102
|
+
|
103
|
+
Linux example:
|
104
|
+
|
105
|
+
export SSL_CERT_FILE=/opt/vagrant/embedded/cacert.pem
|
106
|
+
|
107
|
+
Mac OS X example:
|
108
|
+
|
109
|
+
export SSL_CERT_FILE=/Applications/Vagrant/embedded/cacert.pem
|
110
|
+
|
111
|
+
Windows example:
|
112
|
+
|
113
|
+
set SSL_CERT_FILE=C:\HashiCorp\Vagrant\embedded\cacert.pem
|
114
|
+
dns_record_not_found: |-
|
115
|
+
The DNS record you're trying to delete has not been found.
|
116
|
+
dns_zone_not_found: |-
|
117
|
+
The DNS zone you're trying to manage (%{zone}) has not been
|
118
|
+
found in the zone list.
|
119
|
+
load_balancer_not_found: |-
|
120
|
+
The load balancer you're trying to join has not been found.
|
121
|
+
|
122
|
+
Please check the configuration parameter for virtual IP address.
|
123
|
+
ssh_key_not_found: |-
|
124
|
+
The SSH key you're trying to set (%{key}) does not exists in the
|
125
|
+
SoftLayer account's keychain.
|
126
|
+
states:
|
127
|
+
short_not_created: |-
|
128
|
+
not created
|
129
|
+
long_not_created: |-
|
130
|
+
The SoftLayer instance is not created. Run `vagrant up` to create it.
|
131
|
+
short_halted: |-
|
132
|
+
stopped
|
133
|
+
long_halted: |-
|
134
|
+
The SoftLayer instance is stopped. Run `vagrant up` to start it.
|
135
|
+
short_paused: |-
|
136
|
+
paused
|
137
|
+
long_paused: |-
|
138
|
+
The SoftLayer instance is paused. To resume it, you can run
|
139
|
+
`vagrant resume`.
|
140
|
+
short_running: |-
|
141
|
+
running
|
142
|
+
long_running: |-
|
143
|
+
The SoftLayer instance is running. To stop this machine, you can run
|
144
|
+
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
|
145
|
+
short_unknown: |-
|
146
|
+
unknown
|
147
|
+
long_unknown: |-
|
148
|
+
The SoftLayer instance is in an unknown state. You need to check it
|
149
|
+
out using SoftLayer administrative interface.
|
150
|
+
sync_folders:
|
151
|
+
rsync_folder: |-
|
152
|
+
Rsyncing folder: %{hostpath} => %{guestpath}
|
153
|
+
rsync_not_found: |-
|
154
|
+
Warning! Folder sync disabled because the rsync binary is missing in the %{side}.
|
155
|
+
Make sure rsync is installed and the binary can be found in the PATH.
|
156
|
+
vm:
|
157
|
+
already_running: |-
|
158
|
+
The SoftLayer instance is already running.
|
159
|
+
already_stopped: |-
|
160
|
+
The SoftLayer instance is already stopped.
|
161
|
+
creating: |-
|
162
|
+
Creating a new SoftLayer instance...
|
163
|
+
creating_dns_record: |-
|
164
|
+
Creating DNS record for the instance...
|
165
|
+
deleting_dns_record: |-
|
166
|
+
Deleting DNS record for the instance...
|
167
|
+
destroying: |-
|
168
|
+
Destroying the SoftLayer instance...
|
169
|
+
joining_load_balancers: |-
|
170
|
+
Joining load balancer(s)...
|
171
|
+
load_balancer_cleanup: |-
|
172
|
+
Running cleanup tasks for load balancers...
|
173
|
+
not_destroying: |-
|
174
|
+
The SoftLayer instance will not be destroyed, since the confirmation
|
175
|
+
was declined.
|
176
|
+
not_created: |-
|
177
|
+
The SoftLayer instance does not exists.
|
178
|
+
not_paused: |-
|
179
|
+
The SoftLayer instance cannot be resumed, since it is not suspended.
|
180
|
+
not_rebuilding: |-
|
181
|
+
The SoftLayer instance will not be rebuilded, since the confirmation
|
182
|
+
was declined.
|
183
|
+
not_running: |-
|
184
|
+
The SoftLayer instance is not running. Please run `vagrant up` first.
|
185
|
+
provisioned: |-
|
186
|
+
SoftLayer instance successfully provisioned!
|
187
|
+
rebuilding: |-
|
188
|
+
Rebuilding the SoftLayer instance...
|
189
|
+
rebuild_confirmation: |-
|
190
|
+
Are you sure you want to rebuild the current VM? [y/N]
|
191
|
+
rebuilt: |-
|
192
|
+
SoftLayer instance successfully rebuilt!
|
193
|
+
resuming: |-
|
194
|
+
Resuming the SoftLayer instance...
|
195
|
+
starting: |-
|
196
|
+
Starting the SoftLayer instance...
|
197
|
+
stopping: |-
|
198
|
+
Stopping the SoftLayer instance gracefully...
|
199
|
+
stopping_force: |-
|
200
|
+
Stopping the SoftLayer instance forcibly...
|
201
|
+
suspending: |-
|
202
|
+
Suspending the SoftLayer instance...
|
203
|
+
wait_for_provision: |-
|
204
|
+
Waiting for instance provisioning. This may take a few minutes...
|
205
|
+
wait_for_rebuild: |-
|
206
|
+
Waiting for instance rebuilding. This may take a few minutes...
|