vominator 0.0.8 → 0.0.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 +4 -4
- data/lib/ec2/instances.rb +1 -1
- data/lib/vominator/instances.rb +2 -2
- data/lib/vominator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab4d26c8042a6b51eb9e476621edc81212507666
|
|
4
|
+
data.tar.gz: e2a4c5a3c06f1f9877e8a1b7cf6623bd94b1447c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bfdd612da78808cb2fdd38f1da80a412fa33a152fd37c7e54d2b0004f9bd0157cdcc40b266f1daa1c7600b6d01be68d80d2c1f002792664537b0b74f0881e44
|
|
7
|
+
data.tar.gz: f81208b80df183c517527411c8742b558deff16e3ae88ae8aab40f059337c82ca3fc7276796fafea6238ae2ac2008282b4ca59edcde09c581e38713ffa2d258a
|
data/lib/ec2/instances.rb
CHANGED
|
@@ -343,7 +343,7 @@ instances.each do |instance|
|
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
else #The instance does not exist, in which case we want to create it.
|
|
346
|
-
user_data = Vominator::Instances.generate_cloud_config(hostname, options[:environment], instance['family'], instance['chef_roles'], instance['chef_recipes'])
|
|
346
|
+
user_data = Vominator::Instances.generate_cloud_config(hostname, options[:environment], options[:environment].gsub('.','-'), instance['family'], instance['chef_roles'], instance['chef_recipes'])
|
|
347
347
|
security_group_ids = instance_security_groups.map {|sg| vpc_security_groups[sg] }.compact
|
|
348
348
|
unless test?("Would create #{fqdn}")
|
|
349
349
|
ec2_instance = Vominator::EC2.create_instance(ec2, hostname, options[:environment], ami, existing_subnets[subnet].id, instance_type, key_name, instance_ip, instance_az, security_group_ids, user_data, ebs_optimized, instance['iam_profile'])
|
data/lib/vominator/instances.rb
CHANGED
|
@@ -20,7 +20,7 @@ module Vominator
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def self.generate_cloud_config(hostname, environment, family, roles, recipes)
|
|
23
|
+
def self.generate_cloud_config(hostname, environment, chef_environment, family, roles, recipes)
|
|
24
24
|
template = "#{family}_cloud_config_template"
|
|
25
25
|
begin
|
|
26
26
|
cloud_config_template = File.read("#{VOMINATOR_CONFIG['configuration_path']}/cloud-configs/#{PUKE_CONFIG[environment][template]}")
|
|
@@ -28,7 +28,7 @@ module Vominator
|
|
|
28
28
|
LOGGER.fatal("Unable to find #{template} in your cloud-config directory. Check that this file exists in #{VOMINATOR_CONFIG['configuration_path']}/cloud-configs/")
|
|
29
29
|
end
|
|
30
30
|
cloud_config = Erubis::Eruby.new(cloud_config_template)
|
|
31
|
-
return cloud_config.result(:hostname => hostname, :env => environment, :roles => roles, :recipes => recipes)
|
|
31
|
+
return cloud_config.result(:hostname => hostname, :env => environment, :chef_env => chef_environment, :roles => roles, :recipes => recipes)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
end
|
data/lib/vominator/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vominator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Kelly
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: aws-sdk
|