knife-scaleway 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aae646fa8ca4561bd6846612bcb0f01b82798e00
4
+ data.tar.gz: de88b053c406a26e1555317c83b52bb0635c4b2f
5
+ SHA512:
6
+ metadata.gz: d299d9f4e635308a10a100b67ab26536072e3cbd2f991eb6905827482a021fe39ee0e97cd13b1f8d32a823d8ab544b2207e3817a346b8543ce9ca36db04ce5b8
7
+ data.tar.gz: 1cab0b8235890562b6d39398877e7c30cc6e0f4fcdf6c477643d48493128e3a31279e4fa5b7777c6bea89965700ab8cab6cd731a276eda08ba0515ff4eac6c43
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ .chef
7
+ Gemfile.lock
8
+ knife-scaleway.gemspec.lock
9
+ InstalledFiles
10
+ _yardoc
11
+ coverage
12
+ doc/
13
+ lib/bundler/man
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
20
+ vendor/
@@ -0,0 +1,11 @@
1
+ Metrics/LineLength:
2
+ Max: 120
3
+
4
+ Style/Documentation:
5
+ Enabled: false
6
+
7
+ Metrics/MethodLength:
8
+ Max: 26
9
+
10
+ Style/AlignParameters:
11
+ Enabled: false
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in knife-scaleway.gemspec
4
+ gemspec
@@ -0,0 +1,8 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :rspec, cmd: 'bundle exec rspec' do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { 'spec' }
8
+ end
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,480 @@
1
+ # Knife::Scaleway
2
+ #### A knife plugin to deal with the [Scaleway.com](https://www.scaleway.com) Cloud services.
3
+
4
+ This is a plugin for [Chef's](http://www.opscode.com/chef/) [knife](http://wiki.opscode.com/display/chef/Knife) tool. It allows you to bootstrap virtual machines with [Scaleway.com](https://www.scaleway.com/) including the initial bootstrapping of chef on that system.
5
+ You can also use [knife-solo](http://matschaffer.github.com/knife-solo/) or [knife-zero](https://github.com/higanworks/knife-zero) for chef bootstrapping or skip it altogether for another solution.
6
+
7
+ This knife plugin uses the scaleway ruby library.
8
+
9
+ Knife::Scaleway supports Chef 12.
10
+
11
+ ## Installation
12
+
13
+ ### when using ChefDK
14
+
15
+ ```shell
16
+ ➜ chef gem install knife-scaleway
17
+ ```
18
+
19
+ ### in typical Ruby setup
20
+
21
+ ```shell
22
+ ➜ gem install knife-scaleway
23
+ ```
24
+
25
+
26
+ ## Overview
27
+
28
+ This plugin provides the following sub-commands:
29
+
30
+ * knife scaleway server create (options)
31
+ **Creates a virtual machine with or without bootstrapping chef**
32
+
33
+ * knife scaleway server list (options)
34
+ **Lists currently running virtual machines**
35
+
36
+ * knife scaleway server power (options)
37
+ **Turn a server On/Off**
38
+
39
+ * knife scaleway image list (options)
40
+ **Lists available images (snapshots, backups, OS-images)**
41
+
42
+ * knife scaleway region list (options)
43
+ **Lists the server regions/locations/data-center**
44
+
45
+ * knife scaleway volume list (options)
46
+ **Lists the storage volumes**
47
+
48
+ * knife scaleway ip list (options)
49
+ **Lists the reserved ip addresses**
50
+
51
+
52
+ ## Configuration
53
+
54
+ The best way is to put your API-credentials of Scaleway in your knife.rb file of choice (e.g. in ```~/.chef/knife.rb```):
55
+
56
+ ```ruby
57
+ knife[:scaleway_access_key] = 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'
58
+ knife[:scaleway_token] = 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'
59
+ ```
60
+
61
+ ## Usage
62
+
63
+ ### Create a Server
64
+
65
+ There are three different ways of creating a server instance:
66
+
67
+ If you just want to launch an instance
68
+ form the command line without any bootstrapping, go for option **D**.
69
+ If you use ```knife-zero``` try **C**,
70
+ if you use ```knife-solo``` try **B** and if you are a ```chef-server```-fan
71
+ use method **A**:
72
+ #### A. With bootstrapping in an chef-server environment:
73
+
74
+ __Examples__
75
+
76
+ ```shell
77
+ ➜ knife scaleway server create --server-name awesome-vm1.vm.io \
78
+ --image debian-7-0-x64 \
79
+ ```
80
+
81
+ ```shell
82
+ ➜ knife scaleway server create --server-name awesome-vm2.vm.io \
83
+ --image debian-7.0-x64 \
84
+ --location sfo1 \
85
+ --size 512mb \
86
+ --ssh-keys 1234,1235 \
87
+ --bootstrap \
88
+ --bootstrap-version 11.16.4-1
89
+ --run-list "role[base],role[webserver]" \
90
+ --secret-file "/home/user/.ssh/secret_file" \
91
+ --ssh-port 22 \
92
+ --identity-file "~/.ssh/id_rsa" \
93
+ --private_networking
94
+ ```
95
+
96
+ __Syntax__
97
+
98
+ ```shell
99
+ ➜ knife scaleway server create --server-name <FQDN> \
100
+ --image <IMAGE SLUG> \
101
+ --location <REGION SLUG> \
102
+ --size <SIZE SLUG> \
103
+ --ssh-keys <SSH KEY-ID(s), comma-separated> \
104
+ --ssh-port <SSH PORT> \
105
+ --bootstrap \
106
+ --bootstrap-version <VERSION NUMBER>
107
+ --run-list "<RUNLIST>" \
108
+ --secret-file "<FILENAME>" \
109
+ --private_networking
110
+ --ipv6-enabled
111
+ ```
112
+
113
+ __Short Syntax__
114
+
115
+ ```shell
116
+ ➜ knife scaleway server create -N <FQDN> \
117
+ -I <IMAGE SLUG> \
118
+ -L <REGION SLUG> \
119
+ -S <SIZE SLUG> \
120
+ -K <SSH KEY-ID(s), comma-separated> \
121
+ -p <SSH PORT> \
122
+ -B \
123
+ -r "<RUNLIST>"
124
+ -6
125
+ ```
126
+
127
+ #### B. With knife-solo bootstrapping
128
+
129
+ You need to have [knife-solo](http://matschaffer.github.com/knife-solo/) gem installed.
130
+
131
+ This will create a server and run `knife solo bootstrap <IP>` equivalent for it.
132
+ Please consult the [knife-solo documentation](http://matschaffer.github.io/knife-solo/#label-Bootstrap+command) for further details.
133
+
134
+ __Example__
135
+
136
+ ```bash
137
+ ➜ knife scaleway server create --server-name awesome-vm1.vm.io \
138
+ --image debian-7-0-x64 \
139
+ --location lon1 \
140
+ --size 2gb \
141
+ --ssh-keys 1234,4567 \
142
+ --run-list "<RUNLIST>" \
143
+ --solo
144
+ ```
145
+
146
+ #### C. With knife-zero bootstrapping
147
+
148
+ You need to have [knife-zero](https://github.com/higanworks/knife-zero) gem installed.
149
+
150
+ This will create a server and run `knife zero bootstrap <IP>` equivalent for it.
151
+ Please consult the [knife-zero documentation](https://github.com/higanworks/knife-zero#knife-zero-bootstrap) for further details.
152
+
153
+ __Example__
154
+
155
+ ```bash
156
+ ➜ knife scaleway server create --server-name awesome-vm1.vm.io \
157
+ --image debian-7-0-x64 \
158
+ --location lon1 \
159
+ --size 2gb \
160
+ --ssh-keys 1234,4567 \
161
+ --run-list "<RUNLIST>" \
162
+ --zero
163
+ ```
164
+
165
+ #### D. With your custom external bootstrapping script or without chef at all
166
+
167
+ This will just create a server and return its IP-address. Nothing else. You can now run your custom solution to provision the server.
168
+
169
+ __Example__
170
+
171
+ ```bash
172
+ ➜ knife scaleway server create --server-name awesome-vm1.vm.io \
173
+ --image debian-7-0-x64 \
174
+ --location lon1 \
175
+ --size 2gb \
176
+ --ssh-keys 1234,4567
177
+ ```
178
+
179
+ ### List running servers (servers)
180
+
181
+ ```shell
182
+ ➜ knife scaleway server list
183
+ ID Name Size Region IPv4 Image Status
184
+ 12345 app20.ams.nl.vm.io 1gb Amsterdam 1 185.14.123.123 25306 (Ubuntu 12.10 x32 Server) active
185
+ 23456 awesome-vm1.vm.io 512mb Amsterdam 1 185.14.124.125 25306 (Ubuntu 12.10 x32 Server) active
186
+ ```
187
+
188
+ ### !WARNING! Destroy a server (server) including all of its data!
189
+
190
+ #### Destroy server by id
191
+ ```shell
192
+ ➜ knife scaleway server destroy -S 23456
193
+ OK
194
+ ```
195
+
196
+ #### Destroy all servers
197
+
198
+ ```shell
199
+ ➜ knife scaleway server destroy --all
200
+ Delete server with id: 1824315
201
+ Delete server with id: 1824316
202
+ Delete server with id: 1824317
203
+ ```
204
+
205
+ #### Reboot A Server
206
+ ```shell
207
+ ➜ knife scaleway server reboot -I 1824315
208
+ OK
209
+ ```
210
+
211
+ #### Turn Power On/Off
212
+ ```shell
213
+ ➜ knife scaleway power -I 1824315 -a on
214
+ OK
215
+ ```
216
+
217
+ ```shell
218
+ ➜ knife scaleway power -I 1824315 -a off
219
+ OK
220
+ ```
221
+
222
+ #### Powercycle A Server
223
+ ```shell
224
+ ➜ knife scaleway powercycle -I 1824315
225
+ OK
226
+ ```
227
+
228
+ #### Rebuild A Server
229
+ ```shell
230
+ ➜ knife scaleway rebuild --server-id 1824315 --image-id 65420
231
+ OK
232
+ ```
233
+
234
+ #### Rename A Server
235
+ ```shell
236
+ ➜ knife scaleway rename -I 1824315 -N 'myserverrocks.com'
237
+ OK
238
+ ```
239
+
240
+
241
+ #### Resize A Server
242
+ ```shell
243
+ ➜ knife scaleway rename -I 1824315 -s 1gb
244
+ OK
245
+ ```
246
+
247
+ #### Create a server from a Snapshot
248
+ ```shell
249
+ ➜ knife scaleway snapshot -I 1824315 -N 'my-super-awesome-snapshot'
250
+ OK
251
+ ```
252
+
253
+ ### List regions
254
+
255
+ ```shell
256
+ ➜ knife scaleway region list
257
+ Name Slug
258
+ Amsterdam 1 ams1
259
+ Amsterdam 2 ams2
260
+ Amsterdam 3 ams3
261
+ Frankfurt 1 fra1
262
+ London 1 lon1
263
+ New York 1 nyc1
264
+ New York 2 nyc2
265
+ New York 3 nyc3
266
+ San Francisco 1 sfo1
267
+ Singapore 1 sgp1
268
+ ```
269
+
270
+ ### List sizes (instance types)
271
+
272
+ ```shell
273
+ ➜ knife scaleway size list
274
+ Slug
275
+ 512mb
276
+ 1gb
277
+ 2gb
278
+ 4gb
279
+ 8gb
280
+ 16gb
281
+ 32gb
282
+ 48gb
283
+ 64gb
284
+ ```
285
+
286
+ ### List images
287
+
288
+ #### Custom images (snapshots, backups) (default)
289
+
290
+ ```shell
291
+ ➜ knife scaleway image list
292
+ ID Distribution Name
293
+ 11111 Ubuntu app100.ams.nlxxxxx.net 2013-02-01
294
+ 11112 Ubuntu app100.ams.nlxxxxx.net 2013-02-03
295
+ 11113 Ubuntu init
296
+ ```
297
+
298
+ #### Public images (OS)
299
+
300
+ ```shell
301
+ ➜ knife scaleway image list --public
302
+ ID Distribution Name Slug
303
+ 10322623 CentOS 7 x64 centos-7-0-x64
304
+ 6372425 CentOS 5.10 x32 centos-5-8-x32
305
+ 6372321 CentOS 5.10 x64 centos-5-8-x64
306
+ 10325992 CentOS 6.5 x32 centos-6-5-x32
307
+ 10325922 CentOS 6.5 x64 centos-6-5-x64
308
+ 10679356 CoreOS 557.2.0 (stable) coreos-stable
309
+ 10679369 CoreOS 593.0.0 (alpha) coreos-alpha
310
+ 10692842 CoreOS 584.0.0 (beta) coreos-beta
311
+ 10322059 Debian 7.0 x64 debian-7-0-x64
312
+ 6372581 Debian 6.0 x64 debian-6-0-x64
313
+ 6372662 Debian 6.0 x32 debian-6-0-x32
314
+ 10322378 Debian 7.0 x32 debian-7-0-x32
315
+ 9640922 Fedora 21 x64 fedora-21-x64
316
+ 6370969 Fedora 19 x32 fedora-19-x32
317
+ 6370882 Fedora 20 x64 fedora-20-x64
318
+ 6370968 Fedora 19 x64 fedora-19-x64
319
+ 6370885 Fedora 20 x32 fedora-20-x32
320
+ 10163059 FreeBSD FreeBSD AMP on 10.1 freebsd-amp
321
+ 10144573 FreeBSD 10.1 freebsd-10-1-x64
322
+ 6732690 Ubuntu LEMP on 14.04 lemp
323
+ 10321870 Ubuntu 10.04 x32 ubuntu-10-04-x32
324
+ 10321777 Ubuntu 12.04.5 x32 ubuntu-12-04-x32
325
+ 10321756 Ubuntu 12.04.5 x64 ubuntu-12-04-x64
326
+ 9801948 Ubuntu 14.04 x32 ubuntu-14-04-x32
327
+ 9801954 Ubuntu 14.10 x64 ubuntu-14-10-x64
328
+ 9801951 Ubuntu 14.10 x32 ubuntu-14-10-x32
329
+ 6376601 Ubuntu Ruby on Rails on 14.04 (Nginx + Unicorn) ruby-on-rails
330
+ 6423475 Ubuntu WordPress on 14.04 wordpress
331
+ 10321819 Ubuntu 10.04 x64 ubuntu-10-04-x64
332
+ 6732691 Ubuntu LAMP on 14.04 lamp
333
+ 6798184 Ubuntu MEAN on 14.04 mean
334
+ 8375425 Ubuntu Drupal 7.34 on 14.04 drupal
335
+ 8412876 Ubuntu Magento 1.9.1.0 on 14.04 magento
336
+ 8953301 Ubuntu ELK Logging Stack on 14.04 elk
337
+ 9918633 Ubuntu Ghost 0.5.8 on 14.04 ghost
338
+ 9967718 Ubuntu Django on 14.04 django
339
+ 9801950 Ubuntu 14.04 x64 ubuntu-14-04-x64
340
+ 10274087 Ubuntu GitLab 7.7.1 CE on 14.04 gitlab
341
+ 10321359 Ubuntu MediaWiki 1.24.0 on 14.04 mediawiki
342
+ 10462503 Ubuntu Drone on 14.04 drone
343
+ 10507592 Ubuntu node-v0.12.0 on 14.04 node
344
+ 10563620 Ubuntu Dokku v0.3.14 on 14.04 dokku
345
+ 10565666 Ubuntu ownCloud 8.0 on 14.04 owncloud
346
+ 10581649 Ubuntu Docker 1.5.0 on 14.04 docker
347
+ 7572830 Ubuntu Redmine on 14.04 redmine
348
+ ```
349
+
350
+ #### Destroy Private Images
351
+
352
+ ```shell
353
+ ➜ knife scaleway image destroy -I 11112
354
+ OK
355
+ ```
356
+
357
+ #### Transfer Private Images to Another Region
358
+
359
+ ```shell
360
+ ➜ knife scaleway image destroy -I 11112 -R ams1
361
+
362
+ ```
363
+
364
+
365
+ ### SSH keys
366
+
367
+ #### List SSH keys
368
+
369
+ ```shell
370
+ ➜ knife scaleway sshkey list
371
+ ID Name Fingerprint
372
+ 1234 Alice e0:1a:1b:30:7f:bd:b2:cf:f2:4f:3b:35:3c:87:46:1c
373
+ 1235 Bob b0:ca:40:36:7f:bd:b2:cf:f2:4f:2b:45:3c:28:41:5f
374
+ 1236 Chuck g0:da:3e:15:7f:bd:b2:cf:f2:4f:3a:26:3c:34:52:2b
375
+ 1237 Craig f0:fa:2b:22:7f:bd:b2:cf:f2:4f:4c:18:3c:66:54:1c
376
+ ```
377
+
378
+ #### Create a SSH key
379
+
380
+ ```shell
381
+ ➜ knife scaleway sshkey create -i ~/.ssh/id_rsa.pub -n Bob
382
+ ```
383
+
384
+ #### Destroy a SSH key
385
+
386
+ ```shell
387
+ ➜ knife scaleway sshkey destroy -i 1236
388
+ OK
389
+ ```
390
+
391
+ ### DNS
392
+
393
+ #### Create a domain
394
+
395
+ ```shell
396
+ ➜ knife scaleway domain create -N example.com -I 192.168.1.1
397
+ ```
398
+
399
+ #### Destroy a domain
400
+
401
+ ```shell
402
+ ➜ knife scaleway domain destroy -D example.com
403
+ OK
404
+ ```
405
+
406
+ #### List domains
407
+
408
+ ```shell
409
+ ➜ knife scaleway domain list
410
+ Name TTL
411
+ example.com 1800
412
+ ```
413
+
414
+ #### Create a domain record
415
+
416
+ ```shell
417
+ ➜ knife scaleway domain record create -D example.com -T CNAME -N www -a @
418
+ ```
419
+
420
+ #### Destroy a domain record
421
+
422
+ ```shell
423
+ ➜ knife scaleway domain record destroy -D example.com -R 3355880
424
+ OK
425
+ ```
426
+
427
+ #### List domain records
428
+
429
+ ```shell
430
+ ➜ knife scaleway domain record list -D example.com
431
+ ID Type Name Data
432
+ 3355877 NS @ ns1.scaleway.com
433
+ 3355878 NS @ ns2.scaleway.com
434
+ 3355879 NS @ ns3.scaleway.com
435
+ 3355880 A @ 192.168.1.1
436
+ ```
437
+
438
+ ### Account Info
439
+
440
+ ```shell
441
+ ➜ knife scaleway account info
442
+ UUID Email Server Limit Email Verified
443
+ 58e2e737d3b7407b042aa7f99f4da4229166f2a1 joe@example.com 10 true
444
+ ```
445
+
446
+ ## Contributing
447
+
448
+ 1. Fork it
449
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
450
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
451
+ 4. Push to the branch (`git push origin my-new-feature`)
452
+ 5. Create new Pull Request
453
+
454
+
455
+ ### RuboCop / Ruby Style Guide
456
+
457
+ We want to make sure that our code complies with the Ruby Style Guide:
458
+
459
+ see:
460
+
461
+ - https://github.com/bbatsov/ruby-style-guide
462
+ - https://github.com/bbatsov/rubocop
463
+
464
+
465
+ ### Contributors
466
+
467
+ * [Teemu Matilainen](https://github.com/tmatilai)
468
+ * [Salvatore Poliandro](https://github.com/popsikle)
469
+ * [Lukas Diener](https://bitbucket.org/Lukas_Skywalker)
470
+
471
+ For more information and a complete list see [the contributor page on GitHub](https://github.com/rmoriz/knife-scaleway/contributors).
472
+
473
+ ## License
474
+
475
+ Apache 2.0 (like Chef itself), see LICENSE.txt file.
476
+
477
+ ## Copyright
478
+
479
+ Copyright © 2015 [Roland Moriz](https://roland.io), [Moriz GmbH](https://moriz.de/)
480
+ Copyright © 2015 [Greg Fitzgerald](https://github.com/gregf)