build-cloud 0.0.5 → 0.0.6
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 +2 -0
- data/build-cloud.gemspec +1 -1
- data/lib/build-cloud/r53recordset.rb +12 -0
- data/lib/build-cloud/vpc.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTA5YTQxNmEzM2Q1ZGFlMDAyZWEzNTNjOWMwZjljMWRhZjk0ZjU5Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQ1ZWRjMWJiNmE2MjhkZTNiMzIwYWEzZGFlZjExYzA4Njg0YzIxMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjc0MjRjNzI0YTM0OGEzOWY0NzdjZmVlYzgyOGZkZDc1ZDQyYWQ3ZWY5NTg1
|
10
|
+
YWI5NWU3ZmUzMzdjYzI1YWM0OWRmNzU4MDJiODk5NzQwYTUxODI2YzRlOTNi
|
11
|
+
NDMxZmE0MTI4N2FjOGJlN2FhNjVkMzQxMjRiYzJmYzU2ZWJkMDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2UyMGUxMGJiMzAwYzZhZGM0MjgyYjVkOTU4YzdhZjViOWMwMTY2MDZkMjIx
|
14
|
+
ODRkMTM3ZTc1MzQ4NTA4N2NjYzJiYWNkMDEzYWNhM2EzYTM0OGZjMDNhYjky
|
15
|
+
YWY2Y2E1YTFjOGQ4MTEyY2ZmYjY5YTQ0ZDY4MDg4MGUwMDg0NjY=
|
data/README.md
CHANGED
@@ -22,6 +22,8 @@ See the command line help for `build-cloud`.
|
|
22
22
|
|
23
23
|
## Changelog
|
24
24
|
|
25
|
+
2014-09-23 - version 0.0.6 - correctly name tags VPCs, and now allows you to refer to the public IP of a network interface (via `:network_interface_public_ip` in a Route 53 record set.
|
26
|
+
|
25
27
|
2014-09-16 - version 0.0.5 - now supports creation of DHCP Options Sets, and specifying them using the `:dhcp_options_set_name` key to a VPC.
|
26
28
|
|
27
29
|
2014-09-15 - version 0.0.4 - files can now be passed to `--config` with a path. It is no longer assumed that all files will be in the same directory.
|
data/build-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 = "build-cloud"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.6"
|
8
8
|
spec.authors = ["The Scale Factory"]
|
9
9
|
spec.email = ["info@scalefactory.com"]
|
10
10
|
spec.summary = %q{Tools for building resources in AWS}
|
@@ -42,6 +42,18 @@ class BuildCloud::R53RecordSet
|
|
42
42
|
|
43
43
|
end
|
44
44
|
|
45
|
+
if network_interface_public_ip = options.delete(:network_interface_public_ip)
|
46
|
+
|
47
|
+
network_interface = BuildCloud::NetworkInterface.search( :name => network_interface_public_ip ).first
|
48
|
+
|
49
|
+
unless network_interface
|
50
|
+
raise "Can't find Network Interface ID #{network_interface_id} for Instance #{instance_public_ip}"
|
51
|
+
end
|
52
|
+
|
53
|
+
options[:value] = network_interface.read.association['publicIp']
|
54
|
+
|
55
|
+
end
|
56
|
+
|
45
57
|
if rds_server = options.delete(:rds_server)
|
46
58
|
|
47
59
|
rds = BuildCloud::RDSServer.search( :id => rds_server ).first
|
data/lib/build-cloud/vpc.rb
CHANGED
@@ -40,12 +40,19 @@ class BuildCloud::VPC
|
|
40
40
|
|
41
41
|
@log.info( "Creating new VPC for #{@options[:cidr_block]}" )
|
42
42
|
|
43
|
-
|
43
|
+
options = @options.dup
|
44
|
+
|
45
|
+
options[:tags] = { 'Name' => options.delete(:name) }
|
46
|
+
|
47
|
+
vpc = @compute.vpcs.new( options )
|
44
48
|
vpc.save
|
49
|
+
|
50
|
+
@compute.create_tags( vpc.id, options[:tags] )
|
51
|
+
|
45
52
|
wait_until_ready
|
46
53
|
|
47
|
-
if
|
48
|
-
dhcp_option_set_id = BuildCloud::DHCPOptionsSet.get_id_by_name(
|
54
|
+
if options[:dhcp_options_set_name]
|
55
|
+
dhcp_option_set_id = BuildCloud::DHCPOptionsSet.get_id_by_name( options[:dhcp_options_set_name] )
|
49
56
|
@log.info( "Associating DHCP Options Set #{dhcp_option_set_id} with new VPC ID #{vpc.id}" )
|
50
57
|
@compute.associate_dhcp_options( dhcp_option_set_id,
|
51
58
|
vpc.id )
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Scale Factory
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|