<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chef Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/chef/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/chef/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 04 Sep 2021 09:24:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>What is Chef and Puppet?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-chef-and-puppet/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-chef-and-puppet/#respond</comments>
		
		<dc:creator><![CDATA[Manish Kumar]]></dc:creator>
		<pubDate>Sat, 04 Sep 2021 09:24:39 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Puppet]]></category>
		<category><![CDATA[Automation Tools]]></category>
		<category><![CDATA[Chef Training]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Puppet Training]]></category>
		<category><![CDATA[scmgalaxy]]></category>
		<category><![CDATA[wizbrand]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8749</guid>

					<description><![CDATA[<p>Chef vs Puppet is one of the biggest name in system administration and information technology. Both tools help IT experts [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-chef-and-puppet/">What is Chef and Puppet?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Chef vs Puppet is one of the biggest name in system administration and information technology. Both tools help IT experts to maintain a consistent configuration in all servers. It is very difficult to compare and differentiate both chef and puppet is quite difficult, and decide to choose and who is best for you to use. Puppet or Chef can handle database connection strings where you have a different one for dev, test, and prod.</p>



<p class="wp-block-paragraph">Both tools can handle these type of work as well.</p>



<p class="wp-block-paragraph">In this blog I will try to provide you information from all aspect which going to help you to choose between Puppet vs Chef. Discuss everything from the comparison to differences, pros and cons also. This guide is definitely going to help you in your decision of which server to work with. Let’s start-</p>



<p class="wp-block-paragraph"><strong>What is Chef?</strong></p>



<p class="wp-block-paragraph">Chef is an open-source and code-driven configuration management tool used to transform infrastructure into code. It is well-known for automate how infrastructure is deployed, configured, and managed. Chef can also operate in the cloud, on premises, or even in a hybrid format that comfortable for each individual’s needs.</p>



<p class="wp-block-paragraph"><strong>What is Puppet?</strong></p>



<p class="wp-block-paragraph">Puppet is another open-source configuration management tool, which is deemed to be the industry standard for configuration management. This tool is designed in a simple way that most users can learn, but it is complex enough to handle difficult level tasks and infrastructure.</p>



<p class="wp-block-paragraph">System administrators and IT professionals are able to do a variety of tasks like managing large infrastructures to maintenance of the desired states of nodes.</p>



<p class="wp-block-paragraph"><strong>Chef vs Puppet: Important Differences and Similarities</strong></p>



<p class="wp-block-paragraph">Chef and Puppet both are very promising configuration management software tools,&nbsp; we are here to discuss some of their differences and similarities. Both the tools are simple to use and capabilities to automate complex high level IT application environment.</p>



<p class="wp-block-paragraph">This differences are on the basis of different factors such as Availability, Configuration Language, Setup and Installation, Ease of Management, Scalability, Interoperability, Tool Capabilities and Pricing. These are:</p>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-19.png" alt="" class="wp-image-8751" width="627" height="785" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-19.png 529w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/image-19-240x300.png 240w" sizes="(max-width: 627px) 100vw, 627px" /></figure>



<p class="wp-block-paragraph">Reports says, IT departments with a strong DevOps workflow deploy software 200 times more frequently, with 3000 times faster lead times, recover 28 times faster, and have three times lower change failure rates.</p>



<p class="wp-block-paragraph"><strong>Final words</strong></p>



<p class="wp-block-paragraph">Here comes the main question that How to choose between Chef and Puppet, and the answer is it totally depends on the user’s requirements and purpose for which it going to be used.</p>



<p class="wp-block-paragraph">No matter what you use at the end but decision is especially from the ones who will end up working with the tool. Someone with the same background might find it more suitable to use Puppet or Chef, before taking the decision also consider the premium features from each tool. At the end, features will help your organization in growth or fall.</p>



<p class="wp-block-paragraph">Pricing is another factor which included but prices fluctuates a lot with time, and it varies depending on each customer needs.</p>



<p class="wp-block-paragraph">At last both tools have their own advantages and categories in which they are better than the other. My only intention here is to help you in your decision making. So, it is necessary that you choose the appropriate tool which can be fitted according to your needs.</p>



<p class="wp-block-paragraph">I hope this blog is helpful for you, and if you want to learn more depth knowledge about <a href="https://www.devopsschool.com/courses/chef/chef-advance-training.html" target="_blank" rel="noreferrer noopener">Chef </a>and <a href="https://www.devopsschool.com/courses/puppet/puppet-advance-training.html" target="_blank" rel="noreferrer noopener">Puppet</a>, I would suggest you <strong>DevOpsSchool</strong>, One of the best institute for training and certification online.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe  id="_ytid_33081"  width="640" height="360"  data-origwidth="640" data-origheight="360" src="https://www.youtube.com/embed/MSWVgKN8OmI?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>



<p class="wp-block-paragraph"><strong>Thank you !!</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-chef-and-puppet/">What is Chef and Puppet?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-chef-and-puppet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Which is better for automation: Ansible, Chef or Puppet?</title>
		<link>https://www.scmgalaxy.com/tutorials/which-is-better-for-automation-ansible-chef-or-puppet/</link>
					<comments>https://www.scmgalaxy.com/tutorials/which-is-better-for-automation-ansible-chef-or-puppet/#respond</comments>
		
		<dc:creator><![CDATA[Manish Kumar]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 11:03:33 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Chef]]></category>
		<category><![CDATA[Puppet]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[DevOps Course]]></category>
		<category><![CDATA[DevOps Training]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[scmgalaxy]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6722</guid>

					<description><![CDATA[<p>Many organizations are increasingly adopting the new collaborative culture in a way to achieve a competitive edge in modern IT [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/which-is-better-for-automation-ansible-chef-or-puppet/">Which is better for automation: Ansible, Chef or Puppet?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Many organizations are increasingly adopting the new collaborative culture in a way to achieve a competitive edge in modern IT domain.</p>



<p class="wp-block-paragraph">Recent studies shows that the global DevOps market size reached USD 5.8 billion in 2021 and is projected to attain USD 14.97 billion by 2026 with a CAGR of 19.1% during the forecast period.</p>



<p class="wp-block-paragraph">There are a number of latest DevOps configuration tools such as Chef, Puppet, and Ansible with various features available in the market. So, there is an inevitable need for the comparison of various configuration tools to identify the best tool for the success of DevOps projects.</p>



<p class="wp-block-paragraph"><strong>What is Ansible?</strong></p>



<p class="wp-block-paragraph">Ansible is a latest configuration management tool which makes configuration management and coordination system of computer very easy to user.</p>



<p class="wp-block-paragraph"><strong>What is Puppet?</strong></p>



<p class="wp-block-paragraph">Puppet is the oldest version of configuration management system and hard to understand for user.</p>



<p class="wp-block-paragraph"><strong>What is Chef?</strong></p>



<p class="wp-block-paragraph">Chef is newer than Puppet but older version than Ansible so it is easier than Puppet but not than Ansible configuration system.</p>



<p class="wp-block-paragraph"><strong>Here we do comparison of the top configuration tools including Ansible, Puppet and Chef:</strong></p>



<p class="wp-block-paragraph">First of all these tools are simple to use and robust capabilities to automate complex multi-tier IT application environment.</p>



<p class="wp-block-paragraph">The differences between Ansible, Chef and Puppet are portrayed on the basis of different factors including <strong>Availability, Configuration Language, Setup and Installation, Ease of Management, Scalability, Interoperability, Tool Capabilities and Pricing:</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="709" height="1024" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-11-709x1024.png" alt="" class="wp-image-6723" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-11-709x1024.png 709w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-11-208x300.png 208w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-11-768x1109.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-11.png 788w" sizes="(max-width: 709px) 100vw, 709px" /></figure>



<p class="wp-block-paragraph">IT departments with a strong DevOps workflow deploy software 200 times more frequently, with 2,555 times faster lead times, recover 24 times faster, and have three times lower change failure rates.</p>



<p class="wp-block-paragraph"><strong>Conclusion</strong></p>



<p class="wp-block-paragraph">As you can see above, chef and puppet are the old players with the time whereas Ansible is new players in the market, and Ansible looks very promising with the growing trend. So, to conclude, all the three tools have their own advantages and categories in which they are better than the other. My only intention here is to help you in your decision making. So, it is necessary that you choose the appropriate tool which can be fitted according to your needs.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-17.png" alt="" class="wp-image-6724" width="771" height="225" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-17.png 715w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/ansible-17-300x88.png 300w" sizes="auto, (max-width: 771px) 100vw, 771px" /></figure>



<p class="wp-block-paragraph">If you want to know more about Ansible, you can check out this blog on<a href="https://www.scmgalaxy.com/tutorials/which-is-the-best-ansible-training-institute-in-hyderabad/" target="_blank" rel="noreferrer noopener"> Ansible</a>, <a href="https://www.devopsschool.com/courses/puppet/puppet-advance-training.html">Puppet</a> and <a href="https://www.devopsschool.com/courses/chef/chef-advance-training.html">Chef</a> with complete information.</p>



<p class="wp-block-paragraph">If you are curious to learn and make a good career with this skill then I would suggest you please check out DevOpsschool.com.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/which-is-better-for-automation-ansible-chef-or-puppet/">Which is better for automation: Ansible, Chef or Puppet?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/which-is-better-for-automation-ansible-chef-or-puppet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Chef Node Objects Defined!</title>
		<link>https://www.scmgalaxy.com/tutorials/chef-node-objects-defined/</link>
					<comments>https://www.scmgalaxy.com/tutorials/chef-node-objects-defined/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 10:43:16 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Node Objects]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5000</guid>

					<description><![CDATA[<p>Chef Node Objects Defined! For the chef-client, two important aspects of nodes are groups of attributes and run-lists. An attribute [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-node-objects-defined/">Chef Node Objects Defined!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5015" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef-node-1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef-node-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef-node-1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Chef Node Objects Defined!</p>
<p>For the chef-client, two important aspects of nodes are groups of attributes and run-lists.</p>
<ol>
<li>An attribute is a specific piece of data about the node, such as a network interface, a file system, the number of clients a service running on a node is capable of accepting, and so on.</li>
<li>A run-list is an ordered list of recipes and/or roles that are run in an exact order.</li>
</ol>
<p>The node object consists of the run-list and node attributes, which is a JSON file that is stored on the Chef server. The chef-client gets a copy of the node object from the Chef server during each chef-client run and places an updated copy on the Chef server at the end of each chef-client run.</p>
<p>An attribute is a specific detail about a node. Attributes are used by the chef-client to understand:</p>
<ul>
<li>The current state of the node</li>
<li>What the state of the node was at the end of the previous chef-client run</li>
<li>What the state of the node should be at the end of the current chef-client run</li>
</ul>
<p>Attributes are defined by:</p>
<ul>
<li>The state of the node itself</li>
<li>Cookbooks (in attribute files and/or recipes)</li>
<li>Roles</li>
<li>Environments</li>
</ul>
<p>During every chef-client run, the chef-client builds the attribute list using:</p>
<ul>
<li>Data about the node collected by Ohai</li>
<li>The node object that was saved to the Chef server at the end of the previous chef-client run</li>
<li>The rebuilt node object from the current chef-client run, after it is updated for changes to cookbooks (attribute files and/or recipes), roles, and/or environments, and updated for any changes to the state of the node itself</li>
</ul>
<p>After the node object is rebuilt, all of the attributes are compared, and then the node is updated based on attribute precedence. At the end of every chef-client run, the node object that defines the current state of the node is uploaded to the Chef server so that it can be indexed for search.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-node-objects-defined/">Chef Node Objects Defined!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/chef-node-objects-defined/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Understand the chefignore file</title>
		<link>https://www.scmgalaxy.com/tutorials/understand-the-chefignore-file/</link>
					<comments>https://www.scmgalaxy.com/tutorials/understand-the-chefignore-file/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Jun 2018 10:18:06 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[chefignore]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4997</guid>

					<description><![CDATA[<p>The chefignore file is used to tell knife which cookbook files in the chef-repo should be ignored when uploading data [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understand-the-chefignore-file/">Understand the chefignore file</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5021" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/06/chef-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>The chefignore file is used to tell knife which cookbook files in the chef-repo should be ignored when uploading data to the Chef server. The type of data that should be ignored includes swap files, version control data, build output data, and so on. .</p>
<p>The chefignore file can be located in any subdirectory of a chef-repo: /, /cookbooks, /cookbooks/COOKBOOK_NAME/, roles, etc. It should contain sections similar to the following:</p>
<p><strong>Example of chefignore</strong></p>
<pre class="brush: plain; title: ; notranslate">

# Ignore editor swap files
*~
*.sw&#x5B;a-z]

# Ignore top-level Subversion data
*/.svn/*

# Ignore all files in a directory
files/default/subdirectory/*
files/default/subdirectory/**

# OS generated files #
######################
.DS_Store
Icon?
nohup.out
ehthumbs.db
Thumbs.db

# SASS #
########
.sass-cache

# EDITORS #
###########
\#*
.#*
*~
*.sw&#x5B;a-z]
*.bak
REVISION
TAGS*
tmtags
*_flymake.*
*_flymake
*.tmproj
.project
.settings
mkmf.log

## COMPILED ##
##############
a.out
*.o
*.pyc
*.so
*.com
*.class
*.dll
*.exe
*/rdoc/

# Testing #
###########
.watchr
.rspec
spec/*
spec/fixtures/*
test/*
features/*
examples/*
Guardfile
Procfile
.kitchen*
.rubocop.yml

# SCM #
#######
.git
*/.git
.gitignore
.gitmodules
.gitconfig
.gitattributes
.svn
*/.bzr/*
*/.hg/*
*/.svn/*

# Berkshelf #
#############
Berksfile
Berksfile.lock
cookbooks/*
tmp

# Cookbooks #
#############
CONTRIBUTING*
CHANGELOG*
TESTING*

# Strainer #
############
Colanderfile
Strainerfile
.colander
.strainer

# Vagrant #
###########
.vagrant
Vagrantfile

# Travis #
##########
.travis.yml

</pre>
<p><strong>Reference </strong></p>
<p>https://docs.chef.io/chef_repo.html#chefignore-files</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understand-the-chefignore-file/">Understand the chefignore file</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/understand-the-chefignore-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>run_list and env_run_list explanined in chef role</title>
		<link>https://www.scmgalaxy.com/tutorials/run_list-and-env_run_list-explanined-in-chef-role/</link>
					<comments>https://www.scmgalaxy.com/tutorials/run_list-and-env_run_list-explanined-in-chef-role/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 03 May 2018 06:31:23 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[env_run_list]]></category>
		<category><![CDATA[Role]]></category>
		<category><![CDATA[run_list]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4942</guid>

					<description><![CDATA[<p>run-list A run-list defines all of the information necessary for Chef to configure a node into the desired state. A [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run_list-and-env_run_list-explanined-in-chef-role/">run_list and env_run_list explanined in chef role</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5023" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>run-list</strong><br />
A run-list defines all of the information necessary for Chef to configure a node into the desired state. A run-list may include roles and/or recipes.</p>
<p>A run-list must be in one of the following formats: fully qualified, cookbook, or default. Both roles and recipes must be in quotes, for example:</p>
<pre class="brush: plain; title: ; notranslate">'role&#x5B;NAME]'
'recipe&#x5B;COOKBOOK::RECIPE]'
'recipe&#x5B;COOKBOOK::RECIPE],COOKBOOK::RECIPE,role&#x5B;NAME]'</pre>
<p><strong>env_run_list</strong><br />
When you specify the env_run_list in role and the chef-client will pick up the _default run-list if env_run_list[environment_name] is null or nonexistent. env_run_list is only for roles.The env run list is an override, so it totally replaces the default non-env run list if the env matches.</p>
<pre class="brush: plain; title: ; notranslate">{
 &quot;name&quot;: &quot;webserver&quot;,
 &quot;default_attributes&quot;: {
 },
 &quot;json_class&quot;: &quot;Chef::Role&quot;,
 &quot;env_run_lists&quot;: {
 &quot;production&quot;: &#x5B;],
 &quot;preprod&quot;: &#x5B;],
 &quot;test&quot;: &#x5B; &quot;role&#x5B;base]&quot;, &quot;recipe&#x5B;apache]&quot; &quot;recipe&#x5B;apache::copy_test_configs]&quot; ],
 &quot;dev&quot;: &#x5B; &quot;role&#x5B;base]&quot;, &quot;recipe&#x5B;apache]&quot;, &quot;recipe&#x5B;apache::copy_dev_configs]&quot; ]
 },
 &quot;run_list&quot;: &#x5B; &quot;role&#x5B;base]&quot;, &quot;recipe&#x5B;apache]&quot; ],
 &quot;description&quot;: &quot;The webserver role&quot;,
 &quot;chef_type&quot;: &quot;role&quot;,
 &quot;override_attributes&quot;: {
 }
}</pre>
<p><strong>where:</strong></p>
<ul>
<li>“webserver” is the name of the role</li>
<li>“env_run_lists” is a hash of per-environment run-lists for production, preprod, test, and dev</li>
<li>“production” and “preprod” use the default run-list because they do not have a per-environment run-list</li>
<li>“run_list” defines the default run-list</li>
</ul>
<p><strong>Reference</strong><br />
https://docs.chef.io/run_lists.html<br />
https://railsware.com/blog/2013/09/26/getting-started-with-chef-server-part-2/</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run_list-and-env_run_list-explanined-in-chef-role/">run_list and env_run_list explanined in chef role</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/run_list-and-env_run_list-explanined-in-chef-role/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to run chef-client in why-run mode aka “no-operation”</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-run-chef-client-in-why-run-mode-aka-no-operation/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-run-chef-client-in-why-run-mode-aka-no-operation/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 02 May 2018 09:36:20 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Client]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[why-run]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4934</guid>

					<description><![CDATA[<p>why-run mode is a way to see what the chef-client would have configured, had an actual chef-client run occurred. This [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-run-chef-client-in-why-run-mode-aka-no-operation/">How to run chef-client in why-run mode aka “no-operation”</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5017" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-client.jpg" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-client.jpg 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-client-300x175.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>why-run mode is a way to see what the chef-client would have configured, had an actual chef-client run occurred. This approach is similar to the concept of “no-operation” (or “no-op”): decide what should be done, but then don’t actually do anything until it’s done right. Run the executable in why-run mode, which is a type of chef-client run that does everything except modify the system.</p>
<p>When why-run mode is enabled, a chef-client run will occur that does everything up to the point at which configuration would normally occur. This includes</p>
<ol>
<li>Getting the configuration data,</li>
<li>Authenticating to the Chef server,</li>
<li>Rebuilding the node object,</li>
<li>Expanding the run-list,</li>
<li>Getting the necessary cookbook files,</li>
<li>Resetting node attributes,</li>
<li>Identifying the resources, and</li>
<li>Building the resource collection and</li>
<li>Does not include mapping each resource to a provider or configuring any part of the system.</li>
</ol>
<p><strong>How to run chef-client?</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo chef-client -o 'recipe&#x5B;ntp]' --why-run
$ sudo chef-client -o 'recipe&#x5B;ntp]' -W</pre>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4935" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client.png" alt="" width="1029" height="569" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client.png 1029w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client-300x166.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client-768x425.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/chef-why-run-mode-chef-client-1024x566.png 1024w" sizes="auto, (max-width: 1029px) 100vw, 1029px" /></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-run-chef-client-in-why-run-mode-aka-no-operation/">How to run chef-client in why-run mode aka “no-operation”</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-run-chef-client-in-why-run-mode-aka-no-operation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ecosystem of chef and Its associated tools explained</title>
		<link>https://www.scmgalaxy.com/tutorials/ecosystem-of-chef-and-its-associated-tools-explained/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ecosystem-of-chef-and-its-associated-tools-explained/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 19 Apr 2018 13:32:03 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Apply]]></category>
		<category><![CDATA[Chef Automate]]></category>
		<category><![CDATA[Chef Backend]]></category>
		<category><![CDATA[Chef Client]]></category>
		<category><![CDATA[Chef Compliance]]></category>
		<category><![CDATA[Chef Development Kit]]></category>
		<category><![CDATA[Chef Manage]]></category>
		<category><![CDATA[Chef server]]></category>
		<category><![CDATA[ChefSpec]]></category>
		<category><![CDATA[Foodcritic]]></category>
		<category><![CDATA[InSpec]]></category>
		<category><![CDATA[kitchen]]></category>
		<category><![CDATA[Knife]]></category>
		<category><![CDATA[Push Jobs Client]]></category>
		<category><![CDATA[Push Jobs Server]]></category>
		<category><![CDATA[RuboCop]]></category>
		<category><![CDATA[Serverspec]]></category>
		<category><![CDATA[Supermarket]]></category>
		<category><![CDATA[Test Kitchen]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4924</guid>

					<description><![CDATA[<p>Chef Apply chef-apply is an executable program that runs a single recipe from the command line. Is part of the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ecosystem-of-chef-and-its-associated-tools-explained/">Ecosystem of chef and Its associated tools explained</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5030" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Chef Apply</strong><br />
chef-apply is an executable program that runs a single recipe from the command line. Is part of the Chef development kit. A great way to explore resources</p>
<p><strong>Chef</strong><br />
The chef executable is a command-line tool which Generates applications, cookbooks, recipes, attributes, files, templates, and custom resources (LWRPs) and Ensures that RubyGems are downloaded properly for the chef-client development environment along with Verifies that all components are installed and configured correctly</p>
<p><strong>Knife</strong><br />
knife is a command-line tool that provides an interface between a local chef-repo and the Chef server. knife helps users to manage Nodes, Cookbooks and recipes, Roles, Environments, and Data Bags, Resources within various cloud environments, The installation of the chef-client onto nodes, Searching of indexed data on the Chef server</p>
<p><strong>Chef Client</strong><br />
The Chef client works with the Chef server to bring nodes to their desired states with policies you provide as recipes. The chef-client executable can be run as a daemon. A chef-client is an agent that runs locally on every node that is under management by Chef. When a chef-client is run, it will perform all of the steps that are required to bring the node into the expected state, including:</p>
<ul>
<li>Registering and authenticating the node with the Chef server</li>
<li>Building the node object</li>
<li>Synchronizing cookbooks</li>
<li>Compiling the resource collection by loading each of the required cookbooks, including recipes, attributes, and</li>
<li>all other dependencies</li>
<li>Taking the appropriate and required actions to configure the node</li>
<li>Looking for exceptions and notifications, handling each as required</li>
</ul>
<p><strong>Chef Development Kit</strong><br />
The Chef development kit contains all you need to develop and test your infrastructure, built by the awesome Chef community. Chef Development Kit has following Component installed&#8230;</p>
<ul>
<li>fauxhai</li>
<li>kitchen-vagrant</li>
<li>openssl</li>
<li>delivery-cli</li>
<li>test-kitchen</li>
<li>git</li>
<li>berkshelf</li>
<li>chefspec</li>
<li>knife-spork</li>
<li>inspec</li>
<li>tk-policyfile-provisioner</li>
<li>opscode-pushy-client</li>
<li>chef-dk</li>
<li>chef-sugar</li>
<li>chef-client</li>
<li>generated-cookbooks-pass-chefspec</li>
<li>chef-provisioning</li>
<li>package installation</li>
</ul>
<p><strong>Chef Server</strong><br />
The Chef server makes it easy to automate your infrastructure, manage scale and complexity, and safeguard your systems.</p>
<p>Chef Server has following tools which should be running&#8230;</p>
<ul>
<li>bookshelf</li>
<li>nginx</li>
<li>oc_bifrost</li>
<li>oc_id</li>
<li>opscode-erchef</li>
<li>opscode-expander</li>
<li>opscode-solr4</li>
<li>postgresql</li>
<li>rabbitmq</li>
<li>redis_lb</li>
</ul>
<p><strong>InSpec</strong><br />
InSpec is an open-source testing framework for infrastructure with a human- and machine-readable language for specifying compliance, security and policy requirements.</p>
<p><strong>Push Jobs Client</strong><br />
The Push Jobs client communicates with the Push Jobs server, which extends the Chef Server to allow you to execute commands across hundreds or even thousands of nodes in your Chef-managed infrastructure.</p>
<p><strong>Push Jobs Server</strong><br />
The Push Jobs server add-on, along with its associated client, extends the Chef Server to allow you to execute commands across hundreds or even thousands of nodes in your Chef-managed infrastructure.</p>
<p><strong>Supermarket</strong><br />
Supermarket is an artifact repository that makes it easy to browse, use, and share communal cookbooks and tools within your organization.</p>
<p><strong>Chef Automate</strong><br />
One platform with a unified workflow, end-to-end visibility, and automated compliance over your entire Chef ecosystem.</p>
<p><strong>Chef Compliance</strong><br />
Assess and monitor infrastructure compliance and use InSpec compliance profiles to validate that production servers are properly configured.</p>
<p><strong>Chef Backend</strong><br />
Chef High Availability makes it easy to build high-availability Chef clusters on any infrastructure.</p>
<p><strong>Chef Manage</strong><br />
Chef Manage is an Enterprise Chef add-on that enables a web-based user interface for visualizing and managing nodes, data bags, roles, environments, cookbooks and role-based access control (RBAC).</p>
<p><strong>Kitchen or Test Kitchen</strong><br />
kitchen is the command-line tool for Kitchen, an integration testing tool used by the chef-client. Kitchen runs tests against any combination of platforms using any combination of test suites. Each test, however, is done against a specific instance, which is comprised of a single platform and a single set of testing criteria.</p>
<p>“Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.” It creates test machines, converges them, and runs post-convergence tests against them to verify their state. Test Kitchen is written in Ruby. It has a plugin system for supporting machine creation through a variety of virtual machine technologies such as vagrant, EC2, docker, and several others. Test Kitchen makes it easy for Chef developers to test cookbooks on a variety of platforms. It uses busser to install post-convergence integration test tools such as Serverspec or BATS that actually perform the tests.</p>
<p><strong>foodcritic</strong><br />
Foodcritic is a helpful lint tool you can use to check your Chef cookbooks for common problems.<br />
http://www.foodcritic.io/</p>
<p><strong>ChefSpec</strong><br />
ChefSpec is a framework that tests resources and recipes as part of a simulated chef-client run. ChefSpec tests execute very quickly. When used as part of the cookbook authoring workflow, ChefSpec tests are often the first indicator of problems that may exist within a cookbook.<br />
ChefSpec is packaged as part of the Chef development kit. To run ChefSpec<br />
$ chef exec rspec<br />
https://docs.chef.io/chefspec.html</p>
<p><strong>RuboCop</strong><br />
Rubocop is a Ruby command-line tool that performs lint and style checks based on the community driven Ruby Style Guide. It performs static analysis of any Ruby code, which includes Chef recipes, resources, library helpers, and so forth. Rubocop can be configured via .rubocop.yml to exclude certain rules, and it can be run with “–lint” to perform only lint checking, excluding all style checks. Rubocop is used in the Chef community in cookbooks to make contributions more consistent and easier to manage.</p>
<p><strong>Serverspec</strong><br />
Serverspec is an “outside-in” integration test framework. It is platform and tool agnostic, and is used by other configuration management systems to verify systems are configured as desired. It checks the actual state of the target node by executing commands locally, via SSH, via WinRM, or other remote transports. Serverspec is implemented in RSpec, and uses RSpec test syntax.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ecosystem-of-chef-and-its-associated-tools-explained/">Ecosystem of chef and Its associated tools explained</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ecosystem-of-chef-and-its-associated-tools-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Chef Development Kit(ChefDK)</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-install-chef-development-kitchefdk/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-install-chef-development-kitchefdk/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 19 Apr 2018 13:02:25 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Development Kit]]></category>
		<category><![CDATA[ChefDK]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4922</guid>

					<description><![CDATA[<p>How to install Chef Development Kit(ChefDK)? The Chef development kit contains all you need to develop and test your infrastructure, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-chef-development-kitchefdk/">How to install Chef Development Kit(ChefDK)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5032" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef-1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/04/chef-1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to install Chef Development Kit(ChefDK)?</strong></p>
<p>The Chef development kit contains all you need to develop and test your infrastructure, built by the awesome Chef community. Its Chef Developer tool.</p>
<p><strong>Platform &#8211; Linux RHEL</strong></p>
<p><strong>Download Chef Development Kit(ChefDK)</strong></p>
<pre class="brush: plain; title: ; notranslate"># Download Package URL from https://downloads.chef.io/chefdk/2.5.3
$ sudo -s
$ cd /opt/
$ yum install wget -y
$ wget https://packages.chef.io/files/stable/chefdk/2.5.3/el/7/chefdk-2.5.3-1.el7.x86_64.rpm</pre>
<p><strong>Install Chef Development Kit(ChefDK)</strong></p>
<pre class="brush: plain; title: ; notranslate">$ rpm -Uvh chefdk-2.5.3-1.el7.x86_64.rpm

warning: chefdk-2.5.3-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing...                          ################################# &#x5B;100%]
Updating / installing...
   1:chefdk-2.5.3-1.el7               ################################# &#x5B;100%]
Thank you for installing Chef Development Kit!</pre>
<p><strong>Verify Chef Development Kit(ChefDK) Quick way</strong></p>
<pre class="brush: plain; title: ; notranslate">$ chef -v
Chef Development Kit Version: 2.5.3
chef-client version: 13.8.5
delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)
berks version: 6.3.1
kitchen version: 1.20.0
inspec version: 1.51.21</pre>
<p><strong>Verify Chef Development Kit(ChefDK) Detailed way</strong></p>
<pre class="brush: plain; title: ; notranslate">$ chef verify
&#x5B;WARN] This is an internal command used by the ChefDK development team. If you are a ChefDK user, please do not run it.
Running verification for component 'berkshelf'
Running verification for component 'test-kitchen'
Running verification for component 'tk-policyfile-provisioner'
Running verification for component 'chef-client'
Running verification for component 'chef-dk'
Running verification for component 'chef-provisioning'
Running verification for component 'chefspec'
Running verification for component 'generated-cookbooks-pass-chefspec'
Running verification for component 'fauxhai'
Running verification for component 'knife-spork'
Running verification for component 'kitchen-vagrant'
Running verification for component 'package installation'
Running verification for component 'openssl'
Running verification for component 'inspec'
Running verification for component 'delivery-cli'
Running verification for component 'git'
Running verification for component 'opscode-pushy-client'
Running verification for component 'chef-sugar'
.................................../opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-provisioning-aws-3.0.2/lib/chef/resource/aws_route53_record_set.rb:48: warning: constant ::Fixnum is deprecated
cannot load such file -- fog
.......
---------------------------------------------
Verification of component 'fauxhai' succeeded.
Verification of component 'kitchen-vagrant' succeeded.
Verification of component 'openssl' succeeded.
Verification of component 'delivery-cli' succeeded.
Verification of component 'test-kitchen' succeeded.
Verification of component 'git' succeeded.
Verification of component 'berkshelf' succeeded.
Verification of component 'chefspec' succeeded.
Verification of component 'knife-spork' succeeded.
Verification of component 'inspec' succeeded.
Verification of component 'tk-policyfile-provisioner' succeeded.
Verification of component 'opscode-pushy-client' succeeded.
Verification of component 'chef-dk' succeeded.
Verification of component 'chef-sugar' succeeded.
Verification of component 'chef-client' succeeded.
Verification of component 'generated-cookbooks-pass-chefspec' succeeded.
Verification of component 'chef-provisioning' succeeded.
Verification of component 'package installation' succeeded.
</pre>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-chef-development-kitchefdk/">How to install Chef Development Kit(ChefDK)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-install-chef-development-kitchefdk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week1 &#8211; Overview of Chef.pdf</title>
		<link>https://www.scmgalaxy.com/tutorials/week1-overview-of-chef-pdf/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week1-overview-of-chef-pdf/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:33:58 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[About Chef]]></category>
		<category><![CDATA[Chef Guide]]></category>
		<category><![CDATA[Chef Introduction]]></category>
		<category><![CDATA[Chef Overview]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4736</guid>

					<description><![CDATA[<p>week1 &#8211; Overview of Chef.pdf week1 &#8211; Overview of Chef.pdf</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week1-overview-of-chef-pdf/">week1 &#8211; Overview of Chef.pdf</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>week1 &#8211; Overview of Chef.pdf</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week1-Overview-of-Chef.pdf.pdf">week1 &#8211; Overview of Chef.pdf</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week1-overview-of-chef-pdf/">week1 &#8211; Overview of Chef.pdf</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week1-overview-of-chef-pdf/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week2 &#8211; Node setup, resources &#038; recipes</title>
		<link>https://www.scmgalaxy.com/tutorials/week2-node-setup-resources-recipes/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week2-node-setup-resources-recipes/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:24:17 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef recipes]]></category>
		<category><![CDATA[Node setup]]></category>
		<category><![CDATA[Resources]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4739</guid>

					<description><![CDATA[<p>week2 &#8211; Node setup, resources &#38; recipes week2 &#8211; Node setup, resources &#38; recipes</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week2-node-setup-resources-recipes/">week2 &#8211; Node setup, resources &#038; recipes</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>week2 &#8211; Node setup, resources &amp; recipes</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week2-Node-setup-resources-recipes.pdf">week2 &#8211; Node setup, resources &amp; recipes</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week2-node-setup-resources-recipes/">week2 &#8211; Node setup, resources &#038; recipes</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week2-node-setup-resources-recipes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week3 &#8211; Node setup, resources &#038; recipes</title>
		<link>https://www.scmgalaxy.com/tutorials/week3-node-setup-resources-recipes/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week3-node-setup-resources-recipes/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:21:00 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef recipes]]></category>
		<category><![CDATA[Node setup]]></category>
		<category><![CDATA[Resources]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4734</guid>

					<description><![CDATA[<p>week3 &#8211; Node setup, resources &#38; recipes week3 &#8211; Node setup, resources &#38; recipes</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week3-node-setup-resources-recipes/">week3 &#8211; Node setup, resources &#038; recipes</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>week3 &#8211; Node setup, resources &amp; recipes</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week3-Node-setup-resources-recipes.pdf">week3 &#8211; Node setup, resources &amp; recipes</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week3-node-setup-resources-recipes/">week3 &#8211; Node setup, resources &#038; recipes</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week3-node-setup-resources-recipes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week4 &#8211; Common configuration data with data bags</title>
		<link>https://www.scmgalaxy.com/tutorials/week4-common-configuration-data-with-data-bags/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week4-common-configuration-data-with-data-bags/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:17:19 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Configuration data]]></category>
		<category><![CDATA[Data bags]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4735</guid>

					<description><![CDATA[<p>week4 &#8211; Common configuration data with data bags week4 &#8211; Common configuration data with data bags</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week4-common-configuration-data-with-data-bags/">week4 &#8211; Common configuration data with data bags</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>week4 &#8211; Common configuration data with data bags</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week4-Common-configuration-data-with-data-bags.pdf">week4 &#8211; Common configuration data with data bags</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week4-common-configuration-data-with-data-bags/">week4 &#8211; Common configuration data with data bags</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week4-common-configuration-data-with-data-bags/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week5 &#8211; Using environments and knife-ec2</title>
		<link>https://www.scmgalaxy.com/tutorials/week5-using-environments-and-knife-ec2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week5-using-environments-and-knife-ec2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:13:40 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Environments]]></category>
		<category><![CDATA[knife-ec2]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4730</guid>

					<description><![CDATA[<p>week5 &#8211; Using environments and knife-ec2 week5 &#8211; Using environments and knife-ec2</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week5-using-environments-and-knife-ec2/">week5 &#8211; Using environments and knife-ec2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>week5 &#8211; Using environments and knife-ec2</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week5-Using-environments-and-knife-ec2.pdf">week5 &#8211; Using environments and knife-ec2</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week5-using-environments-and-knife-ec2/">week5 &#8211; Using environments and knife-ec2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week5-using-environments-and-knife-ec2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>week6 &#8211; Community cookbooks and further resources</title>
		<link>https://www.scmgalaxy.com/tutorials/week6-community-cookbooks-and-further-resources/</link>
					<comments>https://www.scmgalaxy.com/tutorials/week6-community-cookbooks-and-further-resources/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 12:12:01 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Cookbooks]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4727</guid>

					<description><![CDATA[<p>Community cookbooks and further resources week6 &#8211; Community cookbooks and further resources</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week6-community-cookbooks-and-further-resources/">week6 &#8211; Community cookbooks and further resources</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Community cookbooks and further resources</p>
<p><strong><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/01/week6-Community-cookbooks-and-further-resources.pdf">week6 &#8211; Community cookbooks and further resources</a></strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/week6-community-cookbooks-and-further-resources/">week6 &#8211; Community cookbooks and further resources</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/week6-community-cookbooks-and-further-resources/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to generate the pre populated information in metadata.rb in chef?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-generate-the-pre-populated-information-in-metadata-rb-in-chef/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-generate-the-pre-populated-information-in-metadata-rb-in-chef/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 13:40:36 +0000</pubDate>
				<category><![CDATA[Configuration Management Tools]]></category>
		<category><![CDATA[Chef]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2834</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: How to generate the pre populated information in metadata.rb in chef? How to generate the pre [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-generate-the-pre-populated-information-in-metadata-rb-in-chef/">How to generate the pre populated information in metadata.rb in chef?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: How to generate the pre populated information in metadata.rb in chef?</strong></p>
<p>How to generate the pre populated information in metadata.rb in chef</p>
<p>You can configure the values in my knife.rb:</p>
<p>cookbookcopyright &#8220;Rajesh Kumar&#8221;<br />
cookbooklicense &#8220;apachev2&#8221;<br />
cookbook_email &#8220;rajesh@scmgalaxy.com&#8221;</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-generate-the-pre-populated-information-in-metadata-rb-in-chef/">How to generate the pre populated information in metadata.rb in chef?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-generate-the-pre-populated-information-in-metadata-rb-in-chef/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully</title>
		<link>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully/</link>
					<comments>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 13:33:32 +0000</pubDate>
				<category><![CDATA[Configuration Management Tools]]></category>
		<category><![CDATA[Chef]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2826</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully &#62; knife [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully/">Fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully</strong></p>
<p>FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully</p>
<pre class="brush: css; title: ; notranslate">
&gt; knife bootstrap uvo1t75faaktzc532w6.vm.cld.sr -x root -P Br356YS0iy --sudo

Doing old-style registration with the validation key at /Users/rajesh.kumar/chef-repo/.chef/scmgalaxy-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr
&gt; Existing Chef installation detected
uvo1t75faaktzc532w6.vm.cld.sr Starting first Chef Client run...
uvo1t75faaktzc532w6.vm.cld.sr &#x5B;2015-08-20T12:01:37-04:00] WARN:
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr SSL validation of HTTPS requests is disabled. HTTPS connections are still
uvo1t75faaktzc532w6.vm.cld.sr encrypted, but chef is not able to detect forged replies or man in the middle
uvo1t75faaktzc532w6.vm.cld.sr attacks.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To fix this issue add an entry like this to your configuration file:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr # Verify all HTTPS connections (recommended)
uvo1t75faaktzc532w6.vm.cld.sr ssl_verify_mode :verify_peer
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr # OR, Verify only connections to chef-server
uvo1t75faaktzc532w6.vm.cld.sr verify_api_cert true
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr To check your SSL configuration, or troubleshoot errors, you can use the
uvo1t75faaktzc532w6.vm.cld.sr `knife ssl check` command like so:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr knife ssl check -c /etc/chef/client.rb
uvo1t75faaktzc532w6.vm.cld.sr ```
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Starting Chef Client, version 11.16.2
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr ================================================================================
uvo1t75faaktzc532w6.vm.cld.sr Chef encountered an error attempting to load the node data for &quot;C2445575914.domain&quot;
uvo1t75faaktzc532w6.vm.cld.sr ================================================================================
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Authentication Error:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate to the chef server (http 401).
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Server Response:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Failed to authenticate as 'C2445575914.domain'. Ensure that your node_name and client key are correct.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr Relevant Config Settings:
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr chef_server_url &quot; api.opscode.com/organizations/scmgalaxy &quot;
uvo1t75faaktzc532w6.vm.cld.sr node_name &quot;C2445575914.domain&quot;
uvo1t75faaktzc532w6.vm.cld.sr client_key &quot;/etc/chef/client.pem&quot;
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr If these settings are correct, your client_key may be invalid, or
uvo1t75faaktzc532w6.vm.cld.sr you may have a chef user with the same client name as this node.
uvo1t75faaktzc532w6.vm.cld.sr
uvo1t75faaktzc532w6.vm.cld.sr &#x5B;2015-08-20T12:01:41-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
uvo1t75faaktzc532w6.vm.cld.sr Chef Client failed. 0 resources updated in 3.598799916 seconds
uvo1t75faaktzc532w6.vm.cld.sr &#x5B;2015-08-20T12:01:41-04:00] ERROR: 401 &quot;Unauthorized&quot;
uvo1t75faaktzc532w6.vm.cld.sr &#x5B;2015-08-20T12:01:41-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
</pre>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ twitter.com/RajeshKumarIn</p>
<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</strong></p>
<p>I just login to the nodes and deleted all files under /etc/chef/ and rerun the commands and worked like charm.</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully/">Fatal: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-unsuccessfully/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Configuration management chef tools projects to test your skills?</title>
		<link>https://www.scmgalaxy.com/tutorials/configuration-management-chef-tools-projects-to-test-your-skills/</link>
					<comments>https://www.scmgalaxy.com/tutorials/configuration-management-chef-tools-projects-to-test-your-skills/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 13:21:23 +0000</pubDate>
				<category><![CDATA[Configuration Management Tools]]></category>
		<category><![CDATA[Chef]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2818</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Configuration management chef tools projects to test your skills? Project 1 &#8211; Write a cookbook which [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/configuration-management-chef-tools-projects-to-test-your-skills/">Configuration management chef tools projects to test your skills?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Configuration management chef tools projects to test your skills?</strong></p>
<p>Project 1 &#8211; Write a cookbook which can add your bash script in crontab on your nodes.</p>
<p>Project 2 &#8211; Perforce the following workflow of chef configuration management tools?</p>
<p>— create a new cookbook and add a recipe to it<br />
— upload your cookbook to the Chef server<br />
— configure your node’s run list<br />
— run chef-client to trigger the configuration process on your target node</p>
<p>Project 3 &#8211; Write a cookbook with external cookbook_files in Chef?</p>
<p>Project 4 &#8211; Write a cookbook which can Set Chef Cookbook Dependencies in metadata file and use it?</p>
<p>Project 5 &#8211; Write a cookbook add jenkins slave nodes in jenkins master server using Chef cookbook?</p>
<p>Project 6 &#8211; Write a cookbook to configure nginx with chef solo on vagrant?</p>
<p>Project 7 &#8211; Write a cookbook to Setting up a MySQL database with a user with Vagrant and chef-solo?</p>
<p>Project 8 &#8211; Write a cookbook to track changes made to systems via knife in chef?</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/configuration-management-chef-tools-projects-to-test-your-skills/">Configuration management chef tools projects to test your skills?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/configuration-management-chef-tools-projects-to-test-your-skills/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</title>
		<link>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u/</link>
					<comments>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 07:48:03 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<category><![CDATA[Chef]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1823</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u/">FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</strong><br />
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)</p>
<p>Error</p>
<p><code>gitlab-ctl reconfigure<br />
Starting Chef Client, version 11.12.2<br />
Compiling Cookbooks...<br />
Recipe: gitlab::default<br />
  * directory[/etc/gitlab] action create (up to date)</p>
<p>================================================================================<br />
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb<br />
================================================================================</p>
<p>RuntimeError<br />
------------<br />
External URL must include a FQDN</p>
<p>Cookbook Trace:<br />
---------------<br />
  /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:95:in `parse_external_url'<br />
  /opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:191:in `generate_config'<br />
  /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:34:in `from_file'</p>
<p>Relevant File Content:<br />
----------------------<br />
/opt/gitlab/embedded/cookbooks/gitlab/libraries/gitlab.rb:</p>
<p> 88:<br />
 89:      def parse_external_url<br />
 90:        return unless external_url<br />
 91:<br />
 92:        uri = URI(external_url.to_s)<br />
 93:<br />
 94:        unless uri.host<br />
 95>>         raise "External URL must include a FQDN"<br />
 96:        end<br />
 97:        Gitlab['user']['git_user_email'] ||= "gitlab@#{uri.host}"<br />
 98:        Gitlab['gitlab_rails']['gitlab_host'] = uri.host<br />
 99:        Gitlab['gitlab_rails']['gitlab_email_from'] ||= "gitlab@#{uri.host}"<br />
100:<br />
101:        case uri.scheme<br />
102:        when "http"<br />
103:          Gitlab['gitlab_rails']['gitlab_https'] = false<br />
104:        when "https"</p>
<p>Running handlers:<br />
[2014-11-03T12:38:40+05:30] ERROR: Running exception handlers<br />
Running handlers complete</p>
<p>[2014-11-03T12:38:40+05:30] ERROR: Exception handlers complete<br />
[2014-11-03T12:38:40+05:30] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out<br />
Chef Client failed. 0 resources updated in 3.925307977 seconds<br />
[2014-11-03T12:38:40+05:30] ERROR: External URL must include a FQDN<br />
[2014-11-03T12:38:41+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)</code></p>
<p>more /etc/gitlab/gitlab.rb<br />
# Check and change the external_url to the address your users will type in their browser<br />
external_url &#8216;hostname:9999&#8217;<br />
unicorn = 9090</p>
<p>Log file</p>
<p>Dumped to<br />
/opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out</p>
<p>OS<br />
RHEL 6.5<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</strong><br />
Solved after<br />
hostname.dev.corp.local:9999<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</strong><br />
I am still not able to access the gitlab url from browsers&#8230;with following info&#8230;.<br />
gitlab-ctl show-config<br />
Starting Chef Client, version 11.12.2<br />
Compiling Cookbooks&#8230;<br />
{<br />
&#8220;gitlab&#8221;: {<br />
&#8220;bootstrap&#8221;: {</p>
<p>},<br />
&#8220;user&#8221;: {</p>
<p>},<br />
&#8220;redis&#8221;: {</p>
<p>},<br />
&#8220;gitlab-rails&#8221;: {<br />
&#8220;secret_token&#8221;: &#8220;f276844818b47932ab27c670536111f68d4ad8d84e3d02a42a0f8be23e00c78a0094f62efbd08655f3430a9524258f39b82281e10d52c391c2e751f5747d45dc&#8221;<br />
},<br />
&#8220;gitlab-shell&#8221;: {</p>
<p>},<br />
&#8220;unicorn&#8221;: {<br />
&#8220;port&#8221;: 9090<br />
},<br />
&#8220;sidekiq&#8221;: {</p>
<p>},<br />
&#8220;nginx&#8221;: {</p>
<p>},<br />
&#8220;logging&#8221;: {</p>
<p>},<br />
&#8220;remote-syslog&#8221;: {</p>
<p>},<br />
&#8220;logrotate&#8221;: {</p>
<p>},<br />
&#8220;high-availability&#8221;: {</p>
<p>},<br />
&#8220;postgresql&#8221;: {</p>
<p>},<br />
&#8220;web-server&#8221;: {</p>
<p>}<br />
}<br />
}<br />
Converging 0 resources</p>
<p>Running handlers:<br />
Running handlers complete</p>
<p>Chef Client finished, 0/0 resources updated in 10.57749914 seconds</p>
<p>gitlab-ctl status<br />
run: logrotate: (pid 19510) 136s; run: log: (pid 10239) 4278s<br />
run: nginx: (pid 20043) 2s; run: log: (pid 9765) 4365s<br />
run: postgresql: (pid 19516) 135s; run: log: (pid 9569) 4393s<br />
run: redis: (pid 19524) 135s; run: log: (pid 9432) 4475s<br />
run: sidekiq: (pid 19529) 134s; run: log: (pid 9712) 4371s<br />
run: unicorn: (pid 19534) 134s; run: log: (pid 9664) 4377s</p>
<p>more /etc/gitlab/gitlab.rb<br />
external_url = &#8216;xysudyd.dev.corp.local:9999&#8217;<br />
unicorn = 9090<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <strong>twitter.com/RajeshKumarIn</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u/">FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited u</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/fatal-chefexceptionschildconvergeerror-chef-run-process-exited-u/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Logging in Chef Explained</title>
		<link>https://www.scmgalaxy.com/tutorials/logging-in-chef-explained/</link>
					<comments>https://www.scmgalaxy.com/tutorials/logging-in-chef-explained/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 26 Jul 2017 12:22:56 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Guide]]></category>
		<category><![CDATA[Chef recipe]]></category>
		<category><![CDATA[Chef Tutorials]]></category>
		<category><![CDATA[Logging in Chef]]></category>
		<category><![CDATA[Logs]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/07/26/logging-in-chef-explained/</guid>

					<description><![CDATA[<p>Chef Server All logs generated by the Chef server can be found in /var/log/opscode. Each service enabled on the system [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/logging-in-chef-explained/">Logging in Chef Explained</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="size-full wp-image-2845 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/logging-in-chef-explained.png" alt="logging-in-chef-explained" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/logging-in-chef-explained.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/logging-in-chef-explained-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Chef Server</strong><br />
All logs generated by the Chef server can be found in /var/log/opscode. Each service enabled on the system also has a sub-directory in which service-specific logs are located, typically found in /var/log/opscode/service_name.</p>
<p>The Chef server has built-in support for easily tailing the logs that are generated. To view all the logs being generated on the Chef server, enter the following command:<br />
&gt; chef-server-ctl tail</p>
<p><strong>To view logs for a specific service:</strong><br />
&gt; chef-server-ctl tail SERVICENAME<br />
where SERVICENAME should be replaced with name of the service for which log files will be viewed. SERVICENAME represents the name of any service that is listed after running the &#8220;&gt; chef-server-ctl service-list&#8221; subcommand.</p>
<p><strong>Another way to view log files is to use the system utility tail:</strong><br />
&gt; tail -50f /var/log/chef-server/opscode-chef/current<br />
&gt; tail -50f /var/log/opscode/opscode-chef/current</p>
<p><strong>Supervisor Logs</strong><br />
Supervisor logs are created and managed directly by the service supervisor, and are automatically rotated when a the current log file reaches 1,000,000 bytes. 10 log files are kept. The latest supervisor log is always located in /var/log/chef-server/service_name/current and rotated logs have a filename starting with @ followed by a precise tai64n timestamp based on when the file was rotated.</p>
<p>Supervisor logs are available for the following services:</p>
<ol>
<li>bifrost</li>
<li>bookshelf</li>
<li>nginx</li>
<li>opscode-erchef</li>
<li>opscode-expander</li>
<li>opscode-expander-reindexer</li>
<li>opscode-solr4</li>
<li>postgresql</li>
<li>rabbitmq</li>
<li>redis</li>
</ol>
<h3>nginx</h3>
<p>The nginx service creates both supervisor and administrator logs. The administrator logs contain both access and error logs for each virtual host utilized by the Chef server. Each of the following logs require external log rotation.</p>
<table border="1">
<colgroup>
<col width="13%" />
<col width="88%" /> </colgroup>
<thead valign="bottom">
<tr>
<th>Logs</th>
<th>Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td>/var/log/opscode/nginx/access.log</td>
<td>The Web UI and API HTTP access logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/error.log</td>
<td>The Web UI and API HTTP error logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-account.access.log</td>
<td>The opscode-account internal load-balancer access logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-account.error.log</td>
<td>The opscode-account internal load-balancer error logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-authz.access.log</td>
<td>The opscode-authz internal load-balancer access logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-authz.error.log</td>
<td>The opscode-authz internal load-balancer error logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-chef.access.log</td>
<td>The opscode-chef and opscode-erchef internal load-balancer access logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/internal-chef.error.log</td>
<td>The opscode-chef and opscode-erchef internal load-balancer error logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/nagios.access.log</td>
<td>The nagios access logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/nagios.error.log</td>
<td>The nagios error logs.</td>
</tr>
<tr>
<td>/var/log/opscode/nginx/rewrite-port-80.log</td>
<td>The rewrite logs for traffic that uses HTTP instead of HTTPS.</td>
</tr>
</tbody>
</table>
<p>To follow the logs for the service:</p>
<div>
<div>
<pre> $ chef-server-ctl tail nginx</pre>
</div>
</div>
<p><strong>Chef Client</strong></p>
<p>Client.rb3 file might help you. Default value of log_location is STDOUT. You can give /path/to/log_location in place of this. You can locate this client.rb file in C:\chef\client.rb or /etc/chef/client.rb directories.</p>
<p>Use the verbose logging that is built into the chef-client:<br />
-l LEVEL, &#8211;log_level LEVEL<br />
The level of logging to be stored in a log file.<br />
-L LOGLOCATION, &#8211;logfile c<br />
The location of the log file. This is recommended when starting any executable as a daemon. Default value: STDOUT.</p>
<p><strong>Knife</strong><br />
Use the verbose logging that is built into knife:<br />
-V, &#8211;verbose<br />
Set for more verbose outputs. Use -VV for maximum verbosity.</p>
<p><strong>chef-solo</strong><br />
-l LEVEL, &#8211;log_level LEVEL<br />
The level of logging to be stored in a log file.</p>
<p>The Chef file and folder locations are different on Linux and Windows machines. This article explains the purpose of each file and the location.</p>
<h4>Summary</h4>
<table border="1" width="100%">
<tbody>
<tr>
<th></th>
<th>Linux</th>
<th>Windows</th>
</tr>
<tr>
<td>Cookbook location</td>
<td>/var/chef/cache/cookbooks</td>
<td> C:\chef\cache\cookbooks</td>
</tr>
<tr>
<td>Chef Client run log</td>
<td>/var/log/chef.log</td>
<td>First run only<br />
C:\chef\chef-client.log</td>
</tr>
<tr>
<td></td>
<td></td>
<td>Subsequent Chef client runs<br />
C:\chef\log\client.log</td>
</tr>
<tr>
<td>Error log</td>
<td>/var/chef/cache/chef-stacktrace.out</td>
<td>C:\chef\cache\chef-stacktrace.out</td>
</tr>
<tr>
<td>Ohai output</td>
<td>/var/chef/cache/failed-run-data.json</td>
<td>C:\chef\cache\failed-run-data.json</td>
</tr>
<tr>
<td>Recommended location for custom log files</td>
<td>/tmp/cheflog.log</td>
<td>C:\Logs\Chef\cheflog.log</td>
</tr>
<tr>
<td height="43">Chef Client configuration</td>
<td>/etc/chef/client.rb</td>
<td>C:\chef\client.rb</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h4>When you test your cookbook in Test Kitchen</h4>
<p>The .kitchen.yml file contains the username to execute the Chef cookbook. It is specified under <strong>platforms</strong>:, <strong>transport</strong>:, <strong>username</strong>:</p>
<p>Use that value in place of <strong>USER-NAME-FROM-KITCHEN-YML</strong> below.</p>
<table border="1" width="100%">
<tbody>
<tr>
<th></th>
<th>Linux</th>
<th>Windows</th>
</tr>
<tr>
<td>Cookbook location</td>
<td>/tmp/kitchen/cookbooks<br />
/tmp/kitchen/cache/cookbooks</td>
<td> C:\Users\USER-NAME-FROM-KITCHEN-YML\AppData\Local\Temp\kitchen\cookbooks</td>
</tr>
<tr>
<td>Error log</td>
<td>/tmp/kitchen/cache/chef-stacktrace.out</td>
<td>C:\Users\USER-NAME-FROM-KITCHEN-YML\AppData\Local\Temp\kitchen\cache\chef-stacktrace.out</td>
</tr>
<tr>
<td>Ohai output</td>
<td>/tmp/kitchen/cache/failed-run-data.json</td>
<td>C:\Users\USER-NAME-FROM-KITCHEN-YML\AppData\Local\Temp\kitchen\cache\failed-run-data.json</td>
</tr>
<tr>
<td>Data bags</td>
<td>/tmp/kitchen/data_bags</td>
<td>C:\Users\USER-NAME-FROM-KITCHEN-YML\AppData\Local\Temp\kitchen\data_bags</td>
</tr>
</tbody>
</table>
<p>&nbsp;<br />
<strong>Cookbook location </strong></p>
<p>When the Chef recipes are executed, all cookbooks are stored on the node. You can examine the code to make sure your latest changes are reflected on the machine.</p>
<p><strong>The log of the Chef client run</strong></p>
<p>The output of the Chef cookbook execution is in the chef.log or chef-client.log file</p>
<p><strong>On Windows</strong></p>
<p><strong>The log of the first Chef Client run and subsequent runs are stored in different log files.</strong> After the initial Chef Client run, the rest of the log entries are collected in the second file.</p>
<p><strong>Stacktrace</strong></p>
<p>Chef saves information on the hard drive when scripts are executed. If there is a failure, the stack trace of the last error is saved in the <strong>chef-stacktrace.out</strong> file.</p>
<p><strong>Ohai output</strong></p>
<p>All the information that Ohai collects on the instance, is saved in the <strong>failed-run-data.json</strong>file, even if there is no error. It is a great resource to get the server specific values.</p>
<p><strong>Reference</strong></p>
<p><a href="https://docs.chef.io/server_logs.html" target="_blank" rel="noopener">https://docs.chef.io/server_logs.html</a><br />
<a href="https://docs.chef.io/debug.html" target="_blank" rel="noopener">https://docs.chef.io/debug.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/logging-in-chef-explained/">Logging in Chef Explained</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/logging-in-chef-explained/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Chef notifies and subscribes explained with examples</title>
		<link>https://www.scmgalaxy.com/tutorials/chef-notifies-and-subscribes-explained-with-examples/</link>
					<comments>https://www.scmgalaxy.com/tutorials/chef-notifies-and-subscribes-explained-with-examples/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 26 Jul 2017 10:27:56 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Chef Guide]]></category>
		<category><![CDATA[Chef notifies]]></category>
		<category><![CDATA[Chef subscribes]]></category>
		<category><![CDATA[Chef Tutorials]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Explanation]]></category>
		<category><![CDATA[Notification]]></category>
		<category><![CDATA[Subscription]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/07/26/chef-notifies-and-subscribes-explained-with-examples/</guid>

					<description><![CDATA[<p>&#160; Chef notifies and subscribes explained with examples A notification is a property on a resource that listens to other [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-notifies-and-subscribes-explained-with-examples/">Chef notifies and subscribes explained with examples</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2867 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/chef-notifies-and-subscribe.png" alt="chef-notifies-and-subscribes-explained-with-examples" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/chef-notifies-and-subscribe.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/chef-notifies-and-subscribe-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></h3>
<p>&nbsp;</p>
<h3>Chef notifies and subscribes explained with examples</h3>
<div></div>
<div>A notification is a property on a resource that listens to other resources in the resource collection and then takes actions based on the notification type (notifies or subscribes).</div>
<div></div>
<p>&nbsp;</p>
<h3>Timers</h3>
<div>A timer specifies the point during the chef-client run at which a notification is run. The following timers are available:</div>
<div><strong>:before</strong></div>
<div>Specifies that the action on a notified resource should be run before processing the resource block in which the notification is located.</div>
<div></div>
<div><strong>:delayed</strong></div>
<div>Default. Specifies that a notification should be queued up, and then executed at the very end of the chef-client run.</div>
<div></div>
<div><strong>:immediate, :immediately</strong></div>
<div>Specifies that a notification should be run immediately, per resource notified.</div>
<div></div>
<p>&nbsp;</p>
<h3>Notifies</h3>
<div>A resource may notify another resource to take action when its state changes. Specify a &#8216;resource[name]&#8217;, the :action that resource should take, and then the :timer for that action. A resource may notify more than one resource; use a notifies statement for each resource to be notified.</div>
<div>The syntax for notifies is:</div>
<div>notifies :action, &#8216;resource[name]&#8217;, :timer</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Example</strong></div>
<div>The following examples show how to use the notifies notification in a recipe.</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Delay notifications</strong></div>
<div>template &#8216;/etc/nagios3/configures-nagios.conf&#8217; do</div>
<div>  # other parameters</div>
<div>  notifies :run, &#8216;execute[test-nagios-config]&#8217;, :delayed</div>
<div>end</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Notify immediately</strong></div>
<div>By default, notifications are :delayed, that is they are queued up as they are triggered, and then executed at the very end of a chef-client run. To run an action immediately, use :immediately:</div>
<div>template &#8216;/etc/nagios3/configures-nagios.conf&#8217; do</div>
<div>  # other parameters</div>
<div>  notifies :run, &#8216;execute[test-nagios-config]&#8217;, :immediately</div>
<div>end</div>
<div></div>
<div>and then the chef-client would immediately run the following:</div>
<div>execute &#8216;test-nagios-config&#8217; do</div>
<div>  command &#8216;nagios3 &#8211;verify-config&#8217;</div>
<div>  action :nothing</div>
<div>end</div>
<div></div>
<p>&nbsp;</p>
<h3>Subscribes</h3>
<div>A resource may listen to another resource, and then take action if the state of the resource being listened to changes. Specify a &#8216;resource[name]&#8217;, the :action to be taken, and then the :timer for that action.</div>
<div></div>
<div>Note that subscribes does not apply the specified action to the resource that it listens to &#8211; for example:</div>
<div>file &#8216;/etc/nginx/ssl/example.crt&#8217; do</div>
<div>   mode &#8216;0600&#8217;</div>
<div>   owner &#8216;root&#8217;</div>
<div>end</div>
<div></div>
<div>service &#8216;nginx&#8217; do</div>
<div>   subscribes :reload, &#8216;file[/etc/nginx/ssl/example.crt]&#8217;, :immediately</div>
<div>end</div>
<div></div>
<div>In this case the subscribes property reloads the nginx service whenever its certificate file, located under /etc/nginx/ssl/example.crt, is updated. subscribes does not make any changes to the certificate file itself, it merely listens for a change to the file, and executes the :reload action for its resource (in this example nginx) when a change is detected.</div>
<div>The syntax for subscribes is:</div>
<div>subscribes :action, &#8216;resource[name]&#8217;, :timer</div>
<div></div>
<p>&nbsp;</p>
<div><strong>Examples</strong></div>
<div>The following examples show how to use the subscribes notification in a recipe.</div>
<div></div>
<div>Prevent restart and reconfigure if configuration is broken</div>
<div></div>
<div>Use the :nothing action (common to all resources) to prevent the test from starting automatically, and then use the subscribes notification to run a configuration test when a change to the template is detected:</div>
<div></div>
<div>execute &#8216;test-nagios-config&#8217; do</div>
<div>  command &#8216;nagios3 &#8211;verify-config&#8217;</div>
<div>  action :nothing</div>
<div>  subscribes :run, &#8216;template[/etc/nagios3/configures-nagios.conf]&#8217;, :immediately</div>
<div>end</div>
<div></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Reference</strong></div>
<div><a href="https://docs.chef.io/resources.html#id4" target="_blank" rel="noopener">https://docs.chef.io/resources.html#id4</a></div>
<div></div>
<div><strong>Example</strong></div>
<div><a href="https://gist.github.com/nathanhoel/f5433a0d9cfe2e717c71" target="_blank" rel="noopener">https://gist.github.com/nathanhoel/f5433a0d9cfe2e717c71</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-notifies-and-subscribes-explained-with-examples/">Chef notifies and subscribes explained with examples</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/chef-notifies-and-subscribes-explained-with-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
