jonathanserafini / chef-cfn Goto Github PK
View Code? Open in Web Editor NEWChef cookbook enabling better cloudformation integration
License: Other
Chef cookbook enabling better cloudformation integration
License: Other
Because no version is specified of the aws-sdk-ruby
gem here: https://github.com/JonathanSerafini/chef-cfn/blob/master/recipes/ohai.rb#L3, the newer version 3 is going to be installed.
Therefore this fails:
https://github.com/JonathanSerafini/chef-cfn/blob/master/files/default/ohai_plugins/cfn.rb#L38
with [2017-12-01T10:36:11+00:00] ERROR: cfn: failed to fetch instance: uninitialized constant Aws::EC2
As far as I can tell there's 2 different ways of fixing this. I don't know which solution you prefer otherwise I would've created a PR ;-)
aws-ruby-sdk
gem to < 3require 'aws-sdk'
require 'aws-sdk-ec2'
Just commenting in case this is something being considered for refactor. The chef_lifecycle script in this repo is currently just a static file and greps for node_name in the client.rb to determine instance name.
Currently it is recommended to leave node_name
out of the chef client.rb, see node_name setting here and let chef determine it automatically from ohai data. So node_name
seems like sort of an odd thing to depend on here: https://github.com/JonathanSerafini/chef-cfn/blob/master/files/default/chef_lifecycle#L15
Maybe this could be moved to a template that is rendered with the node name via ohai data or be converted to just use the ohai data directly.
Thanks for providing this cookbook.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.