<?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>why-run Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/why-run/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/why-run/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:07:03 +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>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 fetchpriority="high" 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="(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 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="(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>
	</channel>
</rss>
