knife-softlayer 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +19 -19
- data/.travis.yml +20 -22
- data/CHANGELOG.md +19 -19
- data/CONTRIBUTING.md +31 -31
- data/CONTRIBUTORS.md +2 -2
- data/Gemfile +4 -4
- data/LICENSE.txt +72 -72
- data/README.md +83 -83
- data/Rakefile +37 -37
- data/docs/cla-corporate.md +133 -133
- data/docs/cla-individual.md +84 -84
- data/examples/datacenter.md +94 -94
- data/examples/flavor.md +58 -58
- data/examples/global_ip.md +22 -22
- data/examples/image.md +34 -34
- data/examples/key_pair.md +56 -56
- data/examples/server.md +82 -81
- data/examples/vlan.md +85 -85
- data/knife-softlayer.gemspec +39 -39
- data/lib/chef/knife/flavor/base.rb +52 -52
- data/lib/chef/knife/softlayer.rb +14 -14
- data/lib/chef/knife/softlayer_base.rb +112 -112
- data/lib/chef/knife/softlayer_datacenter_list.rb +28 -28
- data/lib/chef/knife/softlayer_datacenter_show.rb +45 -45
- data/lib/chef/knife/softlayer_delete.rb +6 -6
- data/lib/chef/knife/softlayer_flavor_list.rb +53 -53
- data/lib/chef/knife/softlayer_global_ip_list.rb +34 -34
- data/lib/chef/knife/softlayer_image_list.rb +26 -26
- data/lib/chef/knife/softlayer_key_pair_create.rb +37 -37
- data/lib/chef/knife/softlayer_key_pair_list.rb +28 -28
- data/lib/chef/knife/softlayer_list.rb +6 -6
- data/lib/chef/knife/softlayer_server_create.rb +459 -453
- data/lib/chef/knife/softlayer_server_destroy.rb +146 -146
- data/lib/chef/knife/softlayer_server_list.rb +27 -27
- data/lib/chef/knife/softlayer_server_relaunch.rb +208 -208
- data/lib/chef/knife/softlayer_vlan_create.rb +37 -37
- data/lib/chef/knife/softlayer_vlan_list.rb +28 -28
- data/lib/chef/knife/softlayer_vlan_show.rb +40 -40
- data/lib/knife-softlayer/version.rb +12 -12
- data/spec/spec_helper.rb +21 -21
- data/spec/unit/softlayer_base_spec.rb +26 -26
- data/spec/unit/softlayer_server_create_spec.rb +105 -105
- data/spec/unit/softlayer_server_destroy_spec.rb +47 -47
- metadata +29 -29
data/examples/datacenter.md
CHANGED
@@ -1,94 +1,94 @@
|
|
1
|
-
### Datacenter Examples
|
2
|
-
|
3
|
-
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
-
|
5
|
-
```ruby
|
6
|
-
knife[:softlayer_username] = 'example_user'
|
7
|
-
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
-
```
|
9
|
-
|
10
|
-
#### List all available datacenters
|
11
|
-
|
12
|
-
```sh
|
13
|
-
user@localhost> knife softlayer datacenter list
|
14
|
-
+-------+--------------+
|
15
|
-
| name | long_name |
|
16
|
-
+-------+--------------+
|
17
|
-
| ams01 | Amsterdam 1 |
|
18
|
-
+-------+--------------+
|
19
|
-
| wdc03 | Ashburn 3 |
|
20
|
-
+-------+--------------+
|
21
|
-
| dal01 | Dallas 1 |
|
22
|
-
+-------+--------------+
|
23
|
-
| dal02 | Dallas 2 |
|
24
|
-
+-------+--------------+
|
25
|
-
| dal04 | Dallas 4 |
|
26
|
-
+-------+--------------+
|
27
|
-
| dal05 | Dallas 5 |
|
28
|
-
+-------+--------------+
|
29
|
-
| dal06 | Dallas 6 |
|
30
|
-
+-------+--------------+
|
31
|
-
| dal07 | Dallas 7 |
|
32
|
-
+-------+--------------+
|
33
|
-
| hkg02 | Hong Kong 2 |
|
34
|
-
+-------+--------------+
|
35
|
-
| hou02 | Houston 2 |
|
36
|
-
+-------+--------------+
|
37
|
-
| lon02 | London 2 |
|
38
|
-
+-------+--------------+
|
39
|
-
| sjc01 | San Jose 1 |
|
40
|
-
+-------+--------------+
|
41
|
-
| sea01 | Seattle |
|
42
|
-
+-------+--------------+
|
43
|
-
| sng01 | Singapore 1 |
|
44
|
-
+-------+--------------+
|
45
|
-
| tor01 | Toronto 1 |
|
46
|
-
+-------+--------------+
|
47
|
-
| wdc01 | Washington 1 |
|
48
|
-
+-------+--------------+
|
49
|
-
|
50
|
-
```
|
51
|
-
|
52
|
-
#### Show a particular datacenter
|
53
|
-
```sh
|
54
|
-
user@localhost> knife softlayer datacenter show tor01
|
55
|
-
Long Name: Toronto 1
|
56
|
-
Name: tor01
|
57
|
-
Routers:
|
58
|
-
+--------------+--------+
|
59
|
-
| hostname | id |
|
60
|
-
+--------------+--------+
|
61
|
-
| bcr01a.tor01 | 266212 |
|
62
|
-
+--------------+--------+
|
63
|
-
| fcr01a.tor01 | 266412 |
|
64
|
-
+--------------+--------+
|
65
|
-
|
66
|
-
user@localhost> knife softlayer datacenter show wdc01
|
67
|
-
Long Name: Washington 1
|
68
|
-
Name: wdc01
|
69
|
-
Routers:
|
70
|
-
+--------------+--------+
|
71
|
-
| hostname | id |
|
72
|
-
+--------------+--------+
|
73
|
-
| bcr01.wdc01 | 16358 |
|
74
|
-
+--------------+--------+
|
75
|
-
| bcr02.wdc01 | 40379 |
|
76
|
-
+--------------+--------+
|
77
|
-
| bcr03a.wdc01 | 85816 |
|
78
|
-
+--------------+--------+
|
79
|
-
| bcr04a.wdc01 | 180611 |
|
80
|
-
+--------------+--------+
|
81
|
-
| bcr05a.wdc01 | 235754 |
|
82
|
-
+--------------+--------+
|
83
|
-
| fcr01.wdc01 | 16357 |
|
84
|
-
+--------------+--------+
|
85
|
-
| fcr02.wdc01 | 40378 |
|
86
|
-
+--------------+--------+
|
87
|
-
| fcr03a.wdc01 | 85814 |
|
88
|
-
+--------------+--------+
|
89
|
-
| fcr04a.wdc01 | 180610 |
|
90
|
-
+--------------+--------+
|
91
|
-
| fcr05a.wdc01 | 235748 |
|
92
|
-
+--------------+--------+
|
93
|
-
|
94
|
-
```
|
1
|
+
### Datacenter Examples
|
2
|
+
|
3
|
+
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
knife[:softlayer_username] = 'example_user'
|
7
|
+
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
+
```
|
9
|
+
|
10
|
+
#### List all available datacenters
|
11
|
+
|
12
|
+
```sh
|
13
|
+
user@localhost> knife softlayer datacenter list
|
14
|
+
+-------+--------------+
|
15
|
+
| name | long_name |
|
16
|
+
+-------+--------------+
|
17
|
+
| ams01 | Amsterdam 1 |
|
18
|
+
+-------+--------------+
|
19
|
+
| wdc03 | Ashburn 3 |
|
20
|
+
+-------+--------------+
|
21
|
+
| dal01 | Dallas 1 |
|
22
|
+
+-------+--------------+
|
23
|
+
| dal02 | Dallas 2 |
|
24
|
+
+-------+--------------+
|
25
|
+
| dal04 | Dallas 4 |
|
26
|
+
+-------+--------------+
|
27
|
+
| dal05 | Dallas 5 |
|
28
|
+
+-------+--------------+
|
29
|
+
| dal06 | Dallas 6 |
|
30
|
+
+-------+--------------+
|
31
|
+
| dal07 | Dallas 7 |
|
32
|
+
+-------+--------------+
|
33
|
+
| hkg02 | Hong Kong 2 |
|
34
|
+
+-------+--------------+
|
35
|
+
| hou02 | Houston 2 |
|
36
|
+
+-------+--------------+
|
37
|
+
| lon02 | London 2 |
|
38
|
+
+-------+--------------+
|
39
|
+
| sjc01 | San Jose 1 |
|
40
|
+
+-------+--------------+
|
41
|
+
| sea01 | Seattle |
|
42
|
+
+-------+--------------+
|
43
|
+
| sng01 | Singapore 1 |
|
44
|
+
+-------+--------------+
|
45
|
+
| tor01 | Toronto 1 |
|
46
|
+
+-------+--------------+
|
47
|
+
| wdc01 | Washington 1 |
|
48
|
+
+-------+--------------+
|
49
|
+
|
50
|
+
```
|
51
|
+
|
52
|
+
#### Show a particular datacenter
|
53
|
+
```sh
|
54
|
+
user@localhost> knife softlayer datacenter show tor01
|
55
|
+
Long Name: Toronto 1
|
56
|
+
Name: tor01
|
57
|
+
Routers:
|
58
|
+
+--------------+--------+
|
59
|
+
| hostname | id |
|
60
|
+
+--------------+--------+
|
61
|
+
| bcr01a.tor01 | 266212 |
|
62
|
+
+--------------+--------+
|
63
|
+
| fcr01a.tor01 | 266412 |
|
64
|
+
+--------------+--------+
|
65
|
+
|
66
|
+
user@localhost> knife softlayer datacenter show wdc01
|
67
|
+
Long Name: Washington 1
|
68
|
+
Name: wdc01
|
69
|
+
Routers:
|
70
|
+
+--------------+--------+
|
71
|
+
| hostname | id |
|
72
|
+
+--------------+--------+
|
73
|
+
| bcr01.wdc01 | 16358 |
|
74
|
+
+--------------+--------+
|
75
|
+
| bcr02.wdc01 | 40379 |
|
76
|
+
+--------------+--------+
|
77
|
+
| bcr03a.wdc01 | 85816 |
|
78
|
+
+--------------+--------+
|
79
|
+
| bcr04a.wdc01 | 180611 |
|
80
|
+
+--------------+--------+
|
81
|
+
| bcr05a.wdc01 | 235754 |
|
82
|
+
+--------------+--------+
|
83
|
+
| fcr01.wdc01 | 16357 |
|
84
|
+
+--------------+--------+
|
85
|
+
| fcr02.wdc01 | 40378 |
|
86
|
+
+--------------+--------+
|
87
|
+
| fcr03a.wdc01 | 85814 |
|
88
|
+
+--------------+--------+
|
89
|
+
| fcr04a.wdc01 | 180610 |
|
90
|
+
+--------------+--------+
|
91
|
+
| fcr05a.wdc01 | 235748 |
|
92
|
+
+--------------+--------+
|
93
|
+
|
94
|
+
```
|
data/examples/flavor.md
CHANGED
@@ -1,59 +1,59 @@
|
|
1
|
-
### Flavor examples
|
2
|
-
|
3
|
-
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
-
|
5
|
-
```ruby
|
6
|
-
knife[:softlayer_username] = 'example_user'
|
7
|
-
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
-
```
|
9
|
-
|
10
|
-
#### List available flavors
|
11
|
-
|
12
|
-
```sh
|
13
|
-
user@localhost> knife softlayer flavor list
|
14
|
-
+-----------+-----+-------+--------------------------------------------------+
|
15
|
-
| id | cpu | ram | disk |
|
16
|
-
+-----------+-----+-------+--------------------------------------------------+
|
17
|
-
| m1.tiny | 2 | 1024 | [{"device"=>0, "diskImage"=>{"capacity"=>25}}] |
|
18
|
-
+-----------+-----+-------+--------------------------------------------------+
|
19
|
-
| m1.small | 2 | 2048 | [{"device"=>0, "diskImage"=>{"capacity"=>100}}] |
|
20
|
-
+-----------+-----+-------+--------------------------------------------------+
|
21
|
-
| m1.medium | 4 | 4096 | [{"device"=>0, "diskImage"=>{"capacity"=>500}}] |
|
22
|
-
+-----------+-----+-------+--------------------------------------------------+
|
23
|
-
| m1.large | 8 | 8192 | [{"device"=>0, "diskImage"=>{"capacity"=>750}}] |
|
24
|
-
+-----------+-----+-------+--------------------------------------------------+
|
25
|
-
| m1.xlarge | 16 | 16384 | [{"device"=>0, "diskImage"=>{"capacity"=>1000}}] |
|
26
|
-
+-----------+-----+-------+--------------------------------------------------+
|
27
|
-
NOTICE:
|
28
|
-
'flavors' provided here for convenience; SoftLayer allows you to choose a configuration a la carte.
|
29
|
-
For a full list of available instance options use --all with the `knife softlayer flavor list` subcommand.
|
30
|
-
```
|
31
|
-
|
32
|
-
#### List available *a la carte* options
|
33
|
-
|
34
|
-
```sh
|
35
|
-
user@localhost> knife softlayer flavor list --all
|
36
|
-
| CORES | RAM | DISK | OS | NETWORK [MBS] | DATACENTER
|
37
|
-
| ========== | ========== | ========== | ========== | ========== | ==========
|
38
|
-
| 1 x 2.0 GHz Core | 1024 [1 GB] | 1,000 GB (SAN) | CENTOS_LATEST | 10 | ams01
|
39
|
-
| 2 x 2.0 GHz Cores | 2048 [2 GB] | 1,000 GB (SAN) | CENTOS_LATEST_64 | 100 | dal01
|
40
|
-
| 4 x 2.0 GHz Cores | 4096 [4 GB] | 1,000 GB (SAN) | CENTOS_LATEST_32 | 1000 | dal05
|
41
|
-
| 8 x 2.0 GHz Cores | 6144 [6 GB] | 1,000 GB (SAN) | CENTOS_6_64 | | dal06
|
42
|
-
| 12 x 2.0 GHz Cores | 8192 [8 GB] | 1,500 GB (SAN) | CENTOS_6_32 | | hkg02
|
43
|
-
| 16 x 2.0 GHz Cores | 12288 [12 GB] | 1,500 GB (SAN) | CENTOS_5_64 | | lon02
|
44
|
-
| Private 1 x 2.0 GHz Core | 16384 [16 GB] | 1,500 GB (SAN) | CENTOS_5_32 | | sea01
|
45
|
-
| Private 2 x 2.0 GHz Cores | 32768 [32 GB] | 1,500 GB (SAN) | CLOUDLINUX_LATEST | | sjc01
|
46
|
-
| Private 4 x 2.0 GHz Cores | 49152 [48 GB] | 10 GB (SAN) | CLOUDLINUX_LATEST_64 | | sng01
|
47
|
-
| Private 8 x 2.0 GHz Cores | 65536 [64 GB] | 10 GB (SAN) | CLOUDLINUX_LATEST_32 | | tor01
|
48
|
-
| | | 10 GB (SAN) | CLOUDLINUX_6_64 | | wdc01
|
49
|
-
| | | 10 GB (SAN) | CLOUDLINUX_6_32 | |
|
50
|
-
| | | 100 GB (LOCAL) | CLOUDLINUX_5_64 | |
|
51
|
-
| | | 100 GB (LOCAL) | CLOUDLINUX_5_32 | |
|
52
|
-
| | | 100 GB (SAN) | DEBIAN_LATEST | |
|
53
|
-
| | | 100 GB (SAN) | DEBIAN_LATEST_64 | |
|
54
|
-
| | | 100 GB (SAN) | DEBIAN_LATEST_32 | |
|
55
|
-
| | | 100 GB (SAN) | DEBIAN_7_64 | |
|
56
|
-
| | | 100 GB (SAN) | DEBIAN_7_32 | |
|
57
|
-
| | | 125 GB (SAN) | DEBIAN_6_64 | |
|
58
|
-
# LIST HAS BEEN TRUNCATED FOR THIS EXAMPLE
|
1
|
+
### Flavor examples
|
2
|
+
|
3
|
+
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
knife[:softlayer_username] = 'example_user'
|
7
|
+
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
+
```
|
9
|
+
|
10
|
+
#### List available flavors
|
11
|
+
|
12
|
+
```sh
|
13
|
+
user@localhost> knife softlayer flavor list
|
14
|
+
+-----------+-----+-------+--------------------------------------------------+
|
15
|
+
| id | cpu | ram | disk |
|
16
|
+
+-----------+-----+-------+--------------------------------------------------+
|
17
|
+
| m1.tiny | 2 | 1024 | [{"device"=>0, "diskImage"=>{"capacity"=>25}}] |
|
18
|
+
+-----------+-----+-------+--------------------------------------------------+
|
19
|
+
| m1.small | 2 | 2048 | [{"device"=>0, "diskImage"=>{"capacity"=>100}}] |
|
20
|
+
+-----------+-----+-------+--------------------------------------------------+
|
21
|
+
| m1.medium | 4 | 4096 | [{"device"=>0, "diskImage"=>{"capacity"=>500}}] |
|
22
|
+
+-----------+-----+-------+--------------------------------------------------+
|
23
|
+
| m1.large | 8 | 8192 | [{"device"=>0, "diskImage"=>{"capacity"=>750}}] |
|
24
|
+
+-----------+-----+-------+--------------------------------------------------+
|
25
|
+
| m1.xlarge | 16 | 16384 | [{"device"=>0, "diskImage"=>{"capacity"=>1000}}] |
|
26
|
+
+-----------+-----+-------+--------------------------------------------------+
|
27
|
+
NOTICE:
|
28
|
+
'flavors' provided here for convenience; SoftLayer allows you to choose a configuration a la carte.
|
29
|
+
For a full list of available instance options use --all with the `knife softlayer flavor list` subcommand.
|
30
|
+
```
|
31
|
+
|
32
|
+
#### List available *a la carte* options
|
33
|
+
|
34
|
+
```sh
|
35
|
+
user@localhost> knife softlayer flavor list --all
|
36
|
+
| CORES | RAM | DISK | OS | NETWORK [MBS] | DATACENTER
|
37
|
+
| ========== | ========== | ========== | ========== | ========== | ==========
|
38
|
+
| 1 x 2.0 GHz Core | 1024 [1 GB] | 1,000 GB (SAN) | CENTOS_LATEST | 10 | ams01
|
39
|
+
| 2 x 2.0 GHz Cores | 2048 [2 GB] | 1,000 GB (SAN) | CENTOS_LATEST_64 | 100 | dal01
|
40
|
+
| 4 x 2.0 GHz Cores | 4096 [4 GB] | 1,000 GB (SAN) | CENTOS_LATEST_32 | 1000 | dal05
|
41
|
+
| 8 x 2.0 GHz Cores | 6144 [6 GB] | 1,000 GB (SAN) | CENTOS_6_64 | | dal06
|
42
|
+
| 12 x 2.0 GHz Cores | 8192 [8 GB] | 1,500 GB (SAN) | CENTOS_6_32 | | hkg02
|
43
|
+
| 16 x 2.0 GHz Cores | 12288 [12 GB] | 1,500 GB (SAN) | CENTOS_5_64 | | lon02
|
44
|
+
| Private 1 x 2.0 GHz Core | 16384 [16 GB] | 1,500 GB (SAN) | CENTOS_5_32 | | sea01
|
45
|
+
| Private 2 x 2.0 GHz Cores | 32768 [32 GB] | 1,500 GB (SAN) | CLOUDLINUX_LATEST | | sjc01
|
46
|
+
| Private 4 x 2.0 GHz Cores | 49152 [48 GB] | 10 GB (SAN) | CLOUDLINUX_LATEST_64 | | sng01
|
47
|
+
| Private 8 x 2.0 GHz Cores | 65536 [64 GB] | 10 GB (SAN) | CLOUDLINUX_LATEST_32 | | tor01
|
48
|
+
| | | 10 GB (SAN) | CLOUDLINUX_6_64 | | wdc01
|
49
|
+
| | | 10 GB (SAN) | CLOUDLINUX_6_32 | |
|
50
|
+
| | | 100 GB (LOCAL) | CLOUDLINUX_5_64 | |
|
51
|
+
| | | 100 GB (LOCAL) | CLOUDLINUX_5_32 | |
|
52
|
+
| | | 100 GB (SAN) | DEBIAN_LATEST | |
|
53
|
+
| | | 100 GB (SAN) | DEBIAN_LATEST_64 | |
|
54
|
+
| | | 100 GB (SAN) | DEBIAN_LATEST_32 | |
|
55
|
+
| | | 100 GB (SAN) | DEBIAN_7_64 | |
|
56
|
+
| | | 100 GB (SAN) | DEBIAN_7_32 | |
|
57
|
+
| | | 125 GB (SAN) | DEBIAN_6_64 | |
|
58
|
+
# LIST HAS BEEN TRUNCATED FOR THIS EXAMPLE
|
59
59
|
```
|
data/examples/global_ip.md
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
### Global IP examples
|
2
|
-
|
3
|
-
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
-
|
5
|
-
```ruby
|
6
|
-
knife[:softlayer_username] = 'example_user'
|
7
|
-
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
-
```
|
9
|
-
|
10
|
-
#### List global ip addresses
|
11
|
-
|
12
|
-
```sh
|
13
|
-
user@localhost> knife softlayer global ip list
|
14
|
-
+-----------------+-----------------+
|
15
|
-
| address | destination |
|
16
|
-
+-----------------+-----------------+
|
17
|
-
| 108.168.254.93 | 173.192.218.117 |
|
18
|
-
+-----------------+-----------------+
|
19
|
-
| 108.168.254.96 | NOT ROUTED |
|
20
|
-
+-----------------+-----------------+
|
21
|
-
| 108.168.254.168 | NOT ROUTED |
|
22
|
-
+-----------------+-----------------+
|
1
|
+
### Global IP examples
|
2
|
+
|
3
|
+
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
knife[:softlayer_username] = 'example_user'
|
7
|
+
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
+
```
|
9
|
+
|
10
|
+
#### List global ip addresses
|
11
|
+
|
12
|
+
```sh
|
13
|
+
user@localhost> knife softlayer global ip list
|
14
|
+
+-----------------+-----------------+
|
15
|
+
| address | destination |
|
16
|
+
+-----------------+-----------------+
|
17
|
+
| 108.168.254.93 | 173.192.218.117 |
|
18
|
+
+-----------------+-----------------+
|
19
|
+
| 108.168.254.96 | NOT ROUTED |
|
20
|
+
+-----------------+-----------------+
|
21
|
+
| 108.168.254.168 | NOT ROUTED |
|
22
|
+
+-----------------+-----------------+
|
23
23
|
```
|
data/examples/image.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
### Server Image examples
|
2
|
-
|
3
|
-
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
-
|
5
|
-
```ruby
|
6
|
-
knife[:softlayer_username] = 'example_user'
|
7
|
-
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
-
```
|
9
|
-
|
10
|
-
#### List server images
|
11
|
-
|
12
|
-
```sh
|
13
|
-
user@localhost> knife softlayer image list
|
14
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
15
|
-
| id | access | name |
|
16
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
17
|
-
| 29073a7a-2fac-405c-b59f-4de8ad6e4945 | PRIVATE | My Golden Image |
|
18
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
19
|
-
| ebb5664c-0471-41cb-bbdf-3de557fb8ed1 | PRIVATE | My Other Golden Image |
|
20
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
21
|
-
| 1176d22b-176a-499a-8d94-f9aaf29155a3 | PUBLIC | 100G CentOS 5 64-bit |
|
22
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
23
|
-
| 3d9be3bc-267a-4441-bb62-25a73fe62642 | PUBLIC | 100G CentOS 5 32-bit |
|
24
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
25
|
-
| 54f4ed9f-f7e6-4fe6-8b54-3a7faacd82b3 | PUBLIC | 25G CentOS 6 64-bit |
|
26
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
27
|
-
| ca668dc5-290d-4fdb-9427-deb9da797962 | PUBLIC | 25G CentOS 6 32-bit |
|
28
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
29
|
-
| f0254ca6-14b5-44f3-84f8-ae5d3bedb77a | PUBLIC | 100G CentOS 6 32-bit |
|
30
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
31
|
-
| c27eb0ad-bddd-44c7-a37a-e3ddbbfed277 | PUBLIC | 100G CentOS 6 64-bit |
|
32
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
33
|
-
| cc30a0a6-b0f1-4db1-82d4-215977aba61d | PUBLIC | 25G RedHat 6 64-bit |
|
34
|
-
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
1
|
+
### Server Image examples
|
2
|
+
|
3
|
+
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
knife[:softlayer_username] = 'example_user'
|
7
|
+
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
+
```
|
9
|
+
|
10
|
+
#### List server images
|
11
|
+
|
12
|
+
```sh
|
13
|
+
user@localhost> knife softlayer image list
|
14
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
15
|
+
| id | access | name |
|
16
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
17
|
+
| 29073a7a-2fac-405c-b59f-4de8ad6e4945 | PRIVATE | My Golden Image |
|
18
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
19
|
+
| ebb5664c-0471-41cb-bbdf-3de557fb8ed1 | PRIVATE | My Other Golden Image |
|
20
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
21
|
+
| 1176d22b-176a-499a-8d94-f9aaf29155a3 | PUBLIC | 100G CentOS 5 64-bit |
|
22
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
23
|
+
| 3d9be3bc-267a-4441-bb62-25a73fe62642 | PUBLIC | 100G CentOS 5 32-bit |
|
24
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
25
|
+
| 54f4ed9f-f7e6-4fe6-8b54-3a7faacd82b3 | PUBLIC | 25G CentOS 6 64-bit |
|
26
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
27
|
+
| ca668dc5-290d-4fdb-9427-deb9da797962 | PUBLIC | 25G CentOS 6 32-bit |
|
28
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
29
|
+
| f0254ca6-14b5-44f3-84f8-ae5d3bedb77a | PUBLIC | 100G CentOS 6 32-bit |
|
30
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
31
|
+
| c27eb0ad-bddd-44c7-a37a-e3ddbbfed277 | PUBLIC | 100G CentOS 6 64-bit |
|
32
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
33
|
+
| cc30a0a6-b0f1-4db1-82d4-215977aba61d | PUBLIC | 25G RedHat 6 64-bit |
|
34
|
+
+--------------------------------------+--------+--------------------------------------------------------------------------------+
|
35
35
|
```
|
data/examples/key_pair.md
CHANGED
@@ -1,57 +1,57 @@
|
|
1
|
-
### Key Pair Examples
|
2
|
-
|
3
|
-
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
-
|
5
|
-
```ruby
|
6
|
-
knife[:softlayer_username] = 'example_user'
|
7
|
-
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
-
```
|
9
|
-
|
10
|
-
#### Create a Key Pair
|
11
|
-
|
12
|
-
```sh
|
13
|
-
user@localhost> knife softlayer key pair create
|
14
|
-
Enter the label for this key pair:
|
15
|
-
```
|
16
|
-
|
17
|
-
```sh
|
18
|
-
user@localhost> knife softlayer key pair create
|
19
|
-
Enter the label for this key pair: my-new-key-pair
|
20
|
-
Enter path to the public key:
|
21
|
-
```
|
22
|
-
|
23
|
-
```sh
|
24
|
-
user@localhost> knife softlayer key pair create
|
25
|
-
Enter the label for this key pair: my-new-key-pair
|
26
|
-
Enter path to the public key: /Users/user/.ssh/my_key_rsa.pub
|
27
|
-
```
|
28
|
-
|
29
|
-
```sh
|
30
|
-
user@localhost> knife softlayer key pair create
|
31
|
-
Enter the label for this key pair: my-new-key-pair
|
32
|
-
Enter path to the public key: /Users/user/.ssh/my_key_rsa.pub
|
33
|
-
Key pair successfully created. Provisioning may take a few minutes to complete.
|
34
|
-
Key pair ID is: 31246
|
35
|
-
```
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
#### List Key Pairs
|
41
|
-
|
42
|
-
```sh
|
43
|
-
user@localhost> knife softlayer key pair list
|
44
|
-
+-------+------------------+---------------------------+-------------+
|
45
|
-
| id | label | create_date | modify_date |
|
46
|
-
+-------+------------------+---------------------------+-------------+
|
47
|
-
| 30846 | Key1 | 2014-01-01T17:05:33-05:00 | |
|
48
|
-
+-------+------------------+---------------------------+-------------+
|
49
|
-
| 30946 | Key2 | 2014-02-24T11:36:43-05:00 | |
|
50
|
-
+-------+------------------+---------------------------+-------------+
|
51
|
-
| 31046 | Key3 | 2014-03-24T11:35:59-05:00 | |
|
52
|
-
+-------+------------------+---------------------------+-------------+
|
53
|
-
| 31146 | Key4 | 2014-04-10T14:48:35-05:00 | |
|
54
|
-
+-------+------------------+---------------------------+-------------+
|
55
|
-
| 31246 | my-new-key-pair | 2014-05-29T11:53:17-05:00 | |
|
56
|
-
+-------+------------------+---------------------------+-------------+
|
1
|
+
### Key Pair Examples
|
2
|
+
|
3
|
+
These examples all assume you have set your SoftLayer username and api key in `~/.chef/knife.rb` like this:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
knife[:softlayer_username] = 'example_user'
|
7
|
+
knife[:softlayer_api_key] = '1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a'
|
8
|
+
```
|
9
|
+
|
10
|
+
#### Create a Key Pair
|
11
|
+
|
12
|
+
```sh
|
13
|
+
user@localhost> knife softlayer key pair create
|
14
|
+
Enter the label for this key pair:
|
15
|
+
```
|
16
|
+
|
17
|
+
```sh
|
18
|
+
user@localhost> knife softlayer key pair create
|
19
|
+
Enter the label for this key pair: my-new-key-pair
|
20
|
+
Enter path to the public key:
|
21
|
+
```
|
22
|
+
|
23
|
+
```sh
|
24
|
+
user@localhost> knife softlayer key pair create
|
25
|
+
Enter the label for this key pair: my-new-key-pair
|
26
|
+
Enter path to the public key: /Users/user/.ssh/my_key_rsa.pub
|
27
|
+
```
|
28
|
+
|
29
|
+
```sh
|
30
|
+
user@localhost> knife softlayer key pair create
|
31
|
+
Enter the label for this key pair: my-new-key-pair
|
32
|
+
Enter path to the public key: /Users/user/.ssh/my_key_rsa.pub
|
33
|
+
Key pair successfully created. Provisioning may take a few minutes to complete.
|
34
|
+
Key pair ID is: 31246
|
35
|
+
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
#### List Key Pairs
|
41
|
+
|
42
|
+
```sh
|
43
|
+
user@localhost> knife softlayer key pair list
|
44
|
+
+-------+------------------+---------------------------+-------------+
|
45
|
+
| id | label | create_date | modify_date |
|
46
|
+
+-------+------------------+---------------------------+-------------+
|
47
|
+
| 30846 | Key1 | 2014-01-01T17:05:33-05:00 | |
|
48
|
+
+-------+------------------+---------------------------+-------------+
|
49
|
+
| 30946 | Key2 | 2014-02-24T11:36:43-05:00 | |
|
50
|
+
+-------+------------------+---------------------------+-------------+
|
51
|
+
| 31046 | Key3 | 2014-03-24T11:35:59-05:00 | |
|
52
|
+
+-------+------------------+---------------------------+-------------+
|
53
|
+
| 31146 | Key4 | 2014-04-10T14:48:35-05:00 | |
|
54
|
+
+-------+------------------+---------------------------+-------------+
|
55
|
+
| 31246 | my-new-key-pair | 2014-05-29T11:53:17-05:00 | |
|
56
|
+
+-------+------------------+---------------------------+-------------+
|
57
57
|
```
|