vominator 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0c0d2ced046104f160fbe3dcfe0eb1d62bda5de
4
- data.tar.gz: 5c5d4b48d8c3f3e608b81e67b97754e95307a926
3
+ metadata.gz: ab4d26c8042a6b51eb9e476621edc81212507666
4
+ data.tar.gz: e2a4c5a3c06f1f9877e8a1b7cf6623bd94b1447c
5
5
  SHA512:
6
- metadata.gz: ab07df9cde02ebf6fa2708dfa06d285ae8e47f5d18333c9b74f1f7e550c8d49f25200574af4fa9daed8ea41e92265e737cd75eb98630523cfbbe546a2988a4c1
7
- data.tar.gz: e435d4d9781779295c8aea362c675c473463d84ed6d5fab1e192e1b58a261540159e34e541354db2682ddeae7b1e604a6ec978e92b04dd7eb84c850b2f6db5ff
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'])
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Vominator
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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-04-04 00:00:00.000000000 Z
13
+ date: 2016-07-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk