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

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: 808d04704a24bfa247c9188d35db5de86b7883ae
4
- data.tar.gz: 12b797326b56988c61657d74308a5411f86f1ce1
3
+ metadata.gz: f298e6f6c4d7f28ea779267dad8dd5a45315b37d
4
+ data.tar.gz: 7532afea84abc0e4dc0909f55704e03e855db649
5
5
  SHA512:
6
- metadata.gz: edc6c107b4bd1be4c4de14819ac00c6001416882c5a0e8ab2f3f3d044bfb11a33756db245fd1043881ee0ba069c85fc67e4dd7bccc5c149c7c0cd3fd38abe92b
7
- data.tar.gz: 0eedf91f22fa5ee6363e59fc32d72d3edc55f7d29198b424b0c7393ff19b423471b2e252fae83b4be5f5c69c772aedcf5f69bbee4669cac519bdb17e8d94dacd
6
+ metadata.gz: 3f2e5128d88ff27b52b902dbeff2b274734cb1b3ed4c0ea700999daa8a8ea01cf73992ab27e0c4b3682a43bf6680e77222ff425953fa6f152d37dd52433db28f
7
+ data.tar.gz: c5b242b0b163f0a63ae71d38e9786a1ba35e800a13c26cb04855fa367a3d390699a6dd3e70323b8dce38cdda23a297c3a315b72543d5dacd64fbf059f4098910
@@ -22,7 +22,7 @@ SfnRegistry.register(:chef_client) do |_name, _config={}|
22
22
  metadata('AWS::CloudFormation::Init') do
23
23
  _camel_keys_set(:auto_disable)
24
24
  configSets do |sets|
25
- sets.default += ['chef_client']
25
+ sets.default.concat(['chef_client'])
26
26
  end
27
27
  chef_client do
28
28
  files('/etc/chef/validation.pem') do
@@ -60,13 +60,18 @@ SfnRegistry.register(:chef_client) do |_name, _config={}|
60
60
  content first_run
61
61
  end
62
62
  commands('00_install_chef') do
63
- command 'curl -L https://omnitruck.chef.io/install.sh | sudo bash'
63
+ command join!("curl -sSL https://omnitruck.chef.io/install.sh | sudo bash -s -- -v ", _config.fetch(:chef_version, 'latest'))
64
64
  end
65
65
  commands('01_log_dir') do
66
66
  command 'mkdir /var/log/chef'
67
67
  test 'test ! -e /var/log/chef'
68
68
  end
69
- commands('02_chef_first_run') do
69
+ # Why is this still a problem, Chef?
70
+ commands('02_create_ec2_hints_file') do
71
+ command 'mkdir -p /etc/chef/ohai/hints && touch /etc/chef/ohai/hints/ec2.json'
72
+ test 'test ! -e /etc/chef/ohai/hints/ec2.json'
73
+ end
74
+ commands('03_chef_first_run') do
70
75
  command 'chef-client -j /etc/chef/first_run.json'
71
76
  end
72
77
  commands('03_remove_validation_pem') do
@@ -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.3'
3
+ s.version = '0.0.4'
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.3
4
+ version: 0.0.4
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-11-01 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sparkle_formation