<?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>Auto Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/auto/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/auto/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Tue, 13 Jul 2021 14:46:06 +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 &#8211; Documenting Cookbooks automatically</title>
		<link>https://www.scmgalaxy.com/tutorials/chef-documenting-cookbooks-automatically/</link>
					<comments>https://www.scmgalaxy.com/tutorials/chef-documenting-cookbooks-automatically/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 18 Aug 2015 16:20:57 +0000</pubDate>
				<category><![CDATA[Chef]]></category>
		<category><![CDATA[Auto]]></category>
		<category><![CDATA[Automate]]></category>
		<category><![CDATA[Automatically]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Chef cookbook]]></category>
		<category><![CDATA[Chef cookbook documentation]]></category>
		<category><![CDATA[Chef Guide]]></category>
		<category><![CDATA[Chef Tutorial]]></category>
		<category><![CDATA[Cookbooks]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Documenting Cookbooks]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/08/18/chef-documenting-cookbooks-automatically/</guid>

					<description><![CDATA[<p>Problems Area &#8211; Our infrastructure has many cookbooks that aim to be reusable, primarily through encapsulating behaviour in LWRPs. This [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-documenting-cookbooks-automatically/">Chef &#8211; Documenting Cookbooks automatically</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-3444 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/chef-documenting-cookbooks.png" alt="chef-documenting-cookbooks" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/chef-documenting-cookbooks.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/chef-documenting-cookbooks-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Problems Area &#8211;</strong></p>
<p>Our infrastructure has many cookbooks that aim to be reusable, primarily through encapsulating behaviour in LWRPs. This led to an explosion of LWRPs and sometimes the documentation didn&#8217;t keep up or did just not exist.</p>
<p><strong>Solution 1: Follow Best Practices </strong></p>
<p>This command will create a README.rdoc by default, and I prefer <a href="https://www.collectiveray.com/markdown-cheat-sheet">Markdown</a>, so I specify the -r md option.</p>
<pre>&gt; knife cookbook create smartmontools -r md</pre>
<p><strong>Solution 2: Automate using plugins</strong></p>
<p>README.md which should be generated automatcially must contain information about the recipes, attributes, platform compatibility and cookbook requirements (i.e. depends, recommends, suggests etc).</p>
<p>Mathias Lafeldt wrote a knife plugin that generates an initial README.md from the metadata.rb file in a a cookbook.</p>
<p>Link &#8211;</p>
<ul>
<li><a href="https://github.com/mlafeldt/knife-cookbook-readme">https://github.com/mlafeldt/knife-cookbook-readme</a></li>
<li><a href="http://mlafeldt.github.io/knife-cookbook-readme/">http://mlafeldt.github.io/knife-cookbook-readme/</a></li>
</ul>
<p>Extension of Mathias Lafeldt was done here with regenerate README.md from the cookbook source code</p>
<ul>
<li><a href="https://github.com/realityforge/knife-cookbook-doc">https://github.com/realityforge/knife-cookbook-doc</a></li>
</ul>
<p><strong>Please refer these useful blogs as well which is referenced in order to write this article&#8230;</strong></p>
<ul>
<li><a href="http://realityforge.org/code/2013/04/01/documenting-cookbooks.html">http://realityforge.org/code/2013/04/01/documenting-cookbooks.html</a></li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/chef-documenting-cookbooks-automatically/">Chef &#8211; Documenting Cookbooks automatically</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/chef-documenting-cookbooks-automatically/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
