avst-cloud 0.1.8 → 0.1.9
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 +8 -8
- data/README.md +1 -0
- data/avst-cloud.gemspec +1 -1
- data/lib/avst-cloud/aws_connection.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmI0MjM5NjZjMzlkODY0YTEzYWEzM2M4NzU2NzVmZDI3ZjJiMmNhYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTVmNmYyMGQ0MDMxZWVmMDZlMGZkNDljN2Y3MGUwZmM0YzhjOTQ3Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzY3NmZjNTg5Y2U0OTQ5ZWZlNDFmNTQ2MDViNWZlYjZhNmRkY2Q4MmVkMTRi
|
10
|
+
NmNkZDY3NGU3MDljMzdkNjRiMmU3OWI3MmRmNjA5ZjIzNjcyMjZmMWJmYjAw
|
11
|
+
YzBmMTFjOTI5YzQ0MTZhZjhhMjkzMzg0ZTFiOGM3NDg0MmJkODI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmMxYjVmODA2OGFlNTQ5NjE5N2MzNzU4MWRkMDM4Yzk5ZWE5YzNmM2I3ZTEw
|
14
|
+
ZTY0ZGJkNjFlYjExMzhhNmJmNTExYjg2NDIyNmM4ZWQ3MmMxYTZhZDNjZTM2
|
15
|
+
NGRjYWExYjM1NTc3NDVkNjA4ZGM5NjIwZmI2NjRiZjZjOWExZmM=
|
data/README.md
CHANGED
@@ -35,6 +35,7 @@ The application depends on several gems listed in avst-cloud.gemspec file. Bundl
|
|
35
35
|
# ebs_size - disk size
|
36
36
|
# hdd_device_path - hdd device path, may differ per ami/os
|
37
37
|
# availability_zone - aws availability zone
|
38
|
+
# vpc - virtual private cloud, defaults to nil, make sure you adjust subned_id and security_group_ids accordingly when setting this option
|
38
39
|
|
39
40
|
server = conn.create_server(server_name, flavour, os, key_name, ssh_key, subnet_id, security_group_ids, ebs_size, hdd_device_path, ami_image_id, availability_zone)
|
40
41
|
|
data/avst-cloud.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "avst-cloud"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.9'
|
8
8
|
spec.authors = ["Martin Brehovsky", "Jon Bevan", "Matthew Hope"]
|
9
9
|
spec.email = ["mbrehovsky@adaptavist.com", "jbevan@adaptavist.com", "mhope@adaptavist.com"]
|
10
10
|
spec.summary = %q{Automated creation, bootstrapping and provisioning of servers }
|
@@ -33,7 +33,7 @@ module AvstCloud
|
|
33
33
|
AvstCloud::AwsServer.new(server, server_name, server.public_ip_address, root_user, root_password)
|
34
34
|
end
|
35
35
|
|
36
|
-
def create_server(server_name, flavour, os, key_name, ssh_key, subnet_id, security_group_ids, ebs_size, hdd_device_path, ami_image_id, availability_zone)
|
36
|
+
def create_server(server_name, flavour, os, key_name, ssh_key, subnet_id, security_group_ids, ebs_size, hdd_device_path, ami_image_id, availability_zone, vpc=nil)
|
37
37
|
|
38
38
|
# Permit named instances from DEFAULT_FLAVOURS
|
39
39
|
flavour = flavour || "t2.micro"
|
@@ -85,6 +85,7 @@ module AvstCloud
|
|
85
85
|
logger.debug "availability_zone - #{availability_zone}"
|
86
86
|
logger.debug "ebs_size - #{ebs_size}"
|
87
87
|
logger.debug "hdd_device_path - #{device_name}"
|
88
|
+
logger.debug "vpc - #{vpc}"
|
88
89
|
|
89
90
|
create_ebs_volume = nil
|
90
91
|
if ebs_size
|
@@ -110,7 +111,9 @@ module AvstCloud
|
|
110
111
|
:associate_public_ip => true,
|
111
112
|
:security_group_ids => security_group_ids,
|
112
113
|
:availability_zone => availability_zone,
|
113
|
-
:block_device_mapping => create_ebs_volume
|
114
|
+
:block_device_mapping => create_ebs_volume,
|
115
|
+
:vpc => vpc
|
116
|
+
|
114
117
|
|
115
118
|
result_server = AvstCloud::AwsServer.new(server, server_name, nil, root_user, ssh_key)
|
116
119
|
# result_server.logger = logger
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avst-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Brehovsky
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|