<?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>Node Objects Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/node-objects/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/node-objects/</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>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 fetchpriority="high" 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="(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>
	</channel>
</rss>
