stemcell 0.2.6 → 0.2.7
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.
- data/bin/stemcell +6 -0
- data/lib/stemcell/version.rb +1 -1
- data/lib/stemcell.rb +3 -0
- metadata +2 -2
data/bin/stemcell
CHANGED
|
@@ -64,6 +64,12 @@ options = Trollop::options do
|
|
|
64
64
|
:default => ENV['KEY_NAME'],
|
|
65
65
|
)
|
|
66
66
|
|
|
67
|
+
opt('iam_role',
|
|
68
|
+
'IAM role to associate with the instance',
|
|
69
|
+
:type => String,
|
|
70
|
+
:default => ENV['IAM_ROLE'],
|
|
71
|
+
)
|
|
72
|
+
|
|
67
73
|
opt('chef_data_bag_secret',
|
|
68
74
|
'path to secret file (or the string containing the secret)',
|
|
69
75
|
:type => String,
|
data/lib/stemcell/version.rb
CHANGED
data/lib/stemcell.rb
CHANGED
|
@@ -69,6 +69,9 @@ module Stemcell
|
|
|
69
69
|
# specify availability zone (optional)
|
|
70
70
|
launch_options[:availability_zone] = opts['availability_zone'] if opts['availability_zone']
|
|
71
71
|
|
|
72
|
+
# specify IAM role (optional)
|
|
73
|
+
launch_options[:iam_instance_profile] = opts['iam_role'] if opts['iam_role']
|
|
74
|
+
|
|
72
75
|
# generate user data script to bootstrap instance, include in launch optsions
|
|
73
76
|
launch_options[:user_data] = render_template(opts)
|
|
74
77
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stemcell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.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-03-
|
|
12
|
+
date: 2013-03-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: trollop
|