sparkle-pack-cfn-init-chef 0.0.2 → 0.0.3

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: 8a10def0785fe544661318b7bc34624072ae1572
4
- data.tar.gz: 9557131f5253390ae5cc5fc1f88cca7d9c203dd0
3
+ metadata.gz: 808d04704a24bfa247c9188d35db5de86b7883ae
4
+ data.tar.gz: 12b797326b56988c61657d74308a5411f86f1ce1
5
5
  SHA512:
6
- metadata.gz: 701d9b7f2f8f07a765d82bae03e4be4acee581b43f964900038e63836c2cd5c2e58f1f8daee31d33940976644666ad4aa055aaf047a2042f107bb711bdaeeecf
7
- data.tar.gz: 224a5a12f41cd8a459a1d757ebb0a7d62cb47d7aeb3a285002945438b741e33d4e5e7109463bd4d155d7621786b62d392a08b73a980b0639f4b6b5e9c2a70b52
6
+ metadata.gz: edc6c107b4bd1be4c4de14819ac00c6001416882c5a0e8ab2f3f3d044bfb11a33756db245fd1043881ee0ba069c85fc67e4dd7bccc5c149c7c0cd3fd38abe92b
7
+ data.tar.gz: 0eedf91f22fa5ee6363e59fc32d72d3edc55f7d29198b424b0c7393ff19b423471b2e252fae83b4be5f5c69c772aedcf5f69bbee4669cac519bdb17e8d94dacd
@@ -2,6 +2,15 @@ SfnRegistry.register(:chef_client) do |_name, _config={}|
2
2
 
3
3
  chef_bucket = _config.fetch(:chef_bucket)
4
4
 
5
+ first_run = _config.fetch(:attributes, {}).merge(
6
+ :stack => {
7
+ :name => stack_name!,
8
+ :id => stack_id!,
9
+ :region => region!
10
+ },
11
+ :run_list => _config.fetch(:run_list, [])
12
+ )
13
+
5
14
  metadata('AWS::CloudFormation::Authentication') do
6
15
  chef_s3_auth do
7
16
  set!('roleName'._no_hump, _config.fetch(:auth_role))
@@ -48,16 +57,7 @@ SfnRegistry.register(:chef_client) do |_name, _config={}|
48
57
  group 'root'
49
58
  end
50
59
  files('/etc/chef/first_run.json') do
51
- content do
52
- run_list _config.fetch(:run_list)
53
- _config.fetch(:attributes, {}).merge(
54
- :stack => {
55
- :name => stack_name!,
56
- :id => stack_id!,
57
- :region => region!
58
- }
59
- )
60
- end
60
+ content first_run
61
61
  end
62
62
  commands('00_install_chef') do
63
63
  command 'curl -L https://omnitruck.chef.io/install.sh | sudo bash'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'sparkle-pack-cfn-init-chef'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = 'CFN Init Chef SparklePack'
6
6
  s.description = 'SparklePack to provide cfn-init config set to bootstrap an instance using Chef'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkle-pack-cfn-init-chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael F. Weinberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sparkle_formation