aws-carb 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +39 -0
- data/lib/aws-carb/cli_argument_parser.rb +2 -2
- data/lib/aws-carb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9530ee3620b1bc7a976efb50b8bfa152c0f42a0e
|
4
|
+
data.tar.gz: e983aab1493873a004ff5b01dfc7ca3d222121f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09129e29ba115c46efef7cb4f4dad4ce63c0808712f6cd230e05cc6a54f8f020e231027c4a647cf9f468a0ae7fe93572b72e600b97cdc2a41cc505a387691056
|
7
|
+
data.tar.gz: 4f8d77b092014073128a9e23ef3e9e5f4cb63e357af090b02f8ac29b9abc3e984daa58f53c761e1950f29514efb876533fc3f7b0f640eea97ef9c1805744cee2
|
data/README.md
CHANGED
@@ -28,4 +28,43 @@ aws create
|
|
28
28
|
```
|
29
29
|
|
30
30
|
|
31
|
+
## Temporary Quickstart Docs..
|
32
|
+
|
33
|
+
Leaving this stuff here until proper docs have been written:
|
34
|
+
|
35
|
+
```
|
36
|
+
# works on ruby > 1.9
|
37
|
+
gem install aws-carb
|
38
|
+
|
39
|
+
# install config and template directories
|
40
|
+
mkdir -p ~/.carb/{config,templates}
|
41
|
+
|
42
|
+
sudo updatedb
|
43
|
+
|
44
|
+
cp `locate gems/aws-carb-0.0.3/configs/config.yaml.example` ~/.carb/config/config.yaml
|
45
|
+
cp `locate gems/aws-carb-0.0.3/template/basic.cloud-config.erb` ~/.carb/templates/
|
46
|
+
|
47
|
+
# edit config.yaml - remember to specify an ssh key because without one your ec2 instance will be inaccessible! (copy your ssh key from id_rsa.pub as a string - not a file path)
|
48
|
+
vim ~/.carb/config/config.yaml
|
49
|
+
|
50
|
+
# examples:
|
51
|
+
|
52
|
+
# create a basic instance like this (or put 'image_id' into 'ec2' section of config.yaml):
|
53
|
+
carb create --image-id <ami id>
|
54
|
+
|
55
|
+
# create an instance but bootstrap it with the user-data cloudinit template and also get some route53 goodness going on because hostname is set
|
56
|
+
# run with verbose to see more interesting info
|
57
|
+
carb -v create --user-data-template ~/.carb/templates/basic.cloud-config.erb --common-variables "{ 'hostname' => 'asdasdasasdasdsa' }"
|
58
|
+
|
59
|
+
# list all the ec2 options:
|
60
|
+
carb help create
|
61
|
+
|
62
|
+
#
|
63
|
+
--block-device-mappings="{ :device_name => "/dev/sdc", :ebs => { :volume_size => "100G" } }"
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
```
|
69
|
+
|
31
70
|
|
@@ -222,8 +222,8 @@ module AWSCarb
|
|
222
222
|
|
223
223
|
block_device_help = "\n\n#{indent}Specifies how block devices are exposed to the instance. Each mapping\n#{indent}is made up of a virtualName and a deviceName.\n" + block_device_help.join.downcase
|
224
224
|
|
225
|
-
option.on "--block-device-mappings=HASH", block_device_help do |
|
226
|
-
cli_arguments.subcommand.ec2.
|
225
|
+
option.on "--block-device-mappings=HASH", block_device_help do |mapping|
|
226
|
+
cli_arguments.subcommand.ec2.block_device_mappings = mapping
|
227
227
|
end
|
228
228
|
|
229
229
|
option.separator ""
|
data/lib/aws-carb/version.rb
CHANGED