Thanks for wanting to contribute to Chef! There are many ways to get involved in various areas of the project, tools, and documentation. This document will help you get started; the links below point to how-to-contribute information for each project.
Dan DeLeo appeared on the FoodFightShow some time ago to walk through "what a Chef run really does". I expanded on these remarks in my personal investigation.
-
bin/chef-clientcreates a newChef::Application::Client(subclass ofChef::Applicationwhich sets up common things like loggers across chef-client, chef-solo, knife, etc.) then jump to: -
lib/chef/client.rb -
application classes create a new
Chef::Clientobject, which callsinitialize().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default['ohai']['plugins']['remediate-shellshock'] = 'plugins' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Author:: Julian C. Dunn (<jdunn@getchef.com>) | |
| # Copyright:: Copyright (c) 2014, Chef Software, Inc. | |
| # License:: Apache License, Version 2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| l59fvp002_pub[/usr/bin] > chef-client | |
| Starting Chef Client, version 12.0.0.alpha.0 | |
| resolving cookbooks for run list: ["chef-client", "aixtest"] | |
| Synchronizing Cookbooks: | |
| - chef-client | |
| - cron | |
| - logrotate | |
| - windows | |
| - chef_handler | |
| - aixtest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 11:04 < nick1> Ugh why aren't the developers of this open source project available 24/7 to fix my every issue? :P | |
| 11:06 < nick2> have you taken all the proper steps, including posting "need help ASAP!!! Very important project | |
| in jeapordy!!" to the mailing list and stackexchange? | |
| 11:07 < nick2> that usually motivates people |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| chfs -a size=+2000000 /usr | |
| chfs -a size=+2000000 /opt | |
| chfs -a size=+2000000 /home | |
| chfs -a size=+2000000 /var | |
| chfs -a size=+2000000 /tmp | |
| rpm -i ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/coreutils/coreutils-5.2.1-2.aix5.1.ppc.rpm | |
| chsec -f /etc/security/limits -s default -a "data=-1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ gem install nokogiri | |
| Building native extensions. This could take a while... | |
| Building nokogiri using packaged libraries. | |
| Building libxml2-2.8.0 for nokogiri with the following patches applied: | |
| - 0001-Fix-parser-local-buffers-size-problems.patch | |
| - 0002-Fix-entities-local-buffers-size-problems.patch | |
| - 0003-Fix-an-error-in-previous-commit.patch | |
| - 0004-Fix-potential-out-of-bound-access.patch | |
| - 0005-Detect-excessive-entities-expansion-upon-replacement.patch | |
| - 0006-Do-not-fetch-external-parsed-entities.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ kitchen test --destroy=never service-init-centos-65 | |
| -----> Starting Kitchen (v1.2.1) | |
| -----> Cleaning up any prior instances of <service-init-centos-65> | |
| -----> Destroying <service-init-centos-65>... | |
| Finished destroying <service-init-centos-65> (0m0.00s). | |
| -----> Testing <service-init-centos-65> | |
| -----> Creating <service-init-centos-65>... | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Importing base box 'opscode-centos-6.5'... | |
| ==> default: Matching MAC address for NAT networking... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =PROGRESS REPORT==== 7-Sep-2014::23:52:03 === | |
| supervisor: {local,lager_sup} | |
| started: [{pid,<0.49.0>}, | |
| {name,lager_crash_log}, | |
| {mfargs, | |
| {lager_crash_log,start_link, | |
| ["log/crash.log",65536,10485760,[{hour,0}],5]}}, | |
| {restart_type,permanent}, | |
| {shutdown,5000}, | |
| {child_type,worker}] |