rivet 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Rivet CHANGELOG
2
2
  ===
3
3
 
4
+ 1.0.7 - Released 11/12/13
5
+ ---
6
+ * Fixes a bug where the run_list json was not rendered properly
7
+ * Adds the iam_instance_profile option to the launch config.
8
+
4
9
  1.0.6 - Released 11/11/2013
5
10
  ---
6
11
  * Fixes a bug when using sync and the launch configuration does not exist
data/README.md CHANGED
@@ -74,6 +74,7 @@ min_size: SIZE <integer>
74
74
  max_size: SIZE <integer>
75
75
  region: AWS REGION <STRING>
76
76
  availability_zones: [ZONE<string>,ZONE...]
77
+ iam_instance_profile: INSTANCE_PROFILE <string>
77
78
 
78
79
  bootstrap:
79
80
  chef_organization: CHEF_ORGANIZATION <string>
@@ -52,7 +52,7 @@ module Rivet
52
52
  end
53
53
  end unless gems.nil?
54
54
 
55
- first_boot = { :run_list => @run_list.join(",") }.to_json unless @run_list.nil?
55
+ first_boot = { :run_list => @run_list.flatten }.to_json unless @run_list.nil?
56
56
 
57
57
  template = ERB.new File.new(File.join(@template_path,@template)).read
58
58
  template.result(binding)
@@ -1,7 +1,7 @@
1
1
  module Rivet
2
2
  class LaunchConfig
3
3
 
4
- LC_ATTRIBUTES = ['key_name','image_id','instance_type','security_groups','bootstrap']
4
+ LC_ATTRIBUTES = ['key_name','image_id','instance_type','security_groups','iam_instance_profile','bootstrap']
5
5
 
6
6
  LC_ATTRIBUTES.each do |a|
7
7
  attr_reader a.to_sym
@@ -18,6 +18,7 @@ module Rivet
18
18
  spec[a] = self.send("normalize_#{a.to_sym}",spec[a])
19
19
  end
20
20
 
21
+ Rivet::Log.debug("Setting LaunchConfig @#{a} to #{spec[a]}")
21
22
  instance_variable_set("@#{a}",spec[a])
22
23
  end
23
24
  end
@@ -42,6 +43,7 @@ module Rivet
42
43
  options[:key_pair] = key_name unless key_name.nil?
43
44
  options[:security_groups] = security_groups unless security_groups.nil?
44
45
  options[:user_data] = user_data unless user_data.nil?
46
+ options[:iam_instance_profile] = iam_instance_profile unless iam_instance_profile.nil?
45
47
 
46
48
  Rivet::Log.info("Saving launch configuration #{identity} to AWS")
47
49
  Rivet::Log.debug("Launch Config options:\n #{options.inspect}")
data/lib/rivet/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Rivet
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rivet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-11 00:00:00.000000000 Z
12
+ date: 2013-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk