<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Deploy WordPress to Amazon EC2 Micro Instance with Opscode Chef	</title>
	<atom:link href="https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/</link>
	<description>Internet Bandwidth Development: Composting the Internet for over Two Decades</description>
	<lastBuildDate>Thu, 05 Aug 2021 05:45:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2107</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 06:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-2107</guid>

					<description><![CDATA[Oh yes. I was kind of bummed when after I was told way back that the site-cookbooks for customized cookbooks and cookbooks for standard cookbooks was best practice. And now its considered depreciated...

I guess its for the best, but I think that the difficulty of sharing individual cookbooks as git-repos is a major short comming of Chef right now. 

I like the vendor branch pattern pretty much.. The plugin &lt;a href=&quot;http://jetpackweb.com/blog/2011/06/12/manage-your-third-party-chef-cookbooks-with-knife-github-cookbooks&quot; title=&quot;knife-github-cookbooks&quot; rel=&quot;nofollow&quot;&gt;knife-github-cookbooks&lt;/a&gt; is helpful]]></description>
			<content:encoded><![CDATA[<p>Oh yes. I was kind of bummed when after I was told way back that the site-cookbooks for customized cookbooks and cookbooks for standard cookbooks was best practice. And now its considered depreciated&#8230;</p>
<p>I guess its for the best, but I think that the difficulty of sharing individual cookbooks as git-repos is a major short comming of Chef right now. </p>
<p>I like the vendor branch pattern pretty much.. The plugin <a href="http://jetpackweb.com/blog/2011/06/12/manage-your-third-party-chef-cookbooks-with-knife-github-cookbooks" title="knife-github-cookbooks" rel="nofollow">knife-github-cookbooks</a> is helpful</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jobicoppola		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2102</link>

		<dc:creator><![CDATA[jobicoppola]]></dc:creator>
		<pubDate>Tue, 11 Oct 2011 20:50:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-2102</guid>

					<description><![CDATA[Ah sorry, to clarify, I was just referring to creating the &lt;code&gt;site-cookbooks&lt;/code&gt; subdir as no longer being best practice, since using the vendor branch pattern allows for your local changes to a cookbook to be merged in when you update it to get the latest changes upstream. 

And yes agreed, &#039;mkdir -p&#039; is super handy. :)]]></description>
			<content:encoded><![CDATA[<p>Ah sorry, to clarify, I was just referring to creating the <code>site-cookbooks</code> subdir as no longer being best practice, since using the vendor branch pattern allows for your local changes to a cookbook to be merged in when you update it to get the latest changes upstream. </p>
<p>And yes agreed, &#8216;mkdir -p&#8217; is super handy. 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2101</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Tue, 11 Oct 2011 18:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-2101</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2100&quot;&gt;jobicoppola&lt;/a&gt;.

I don&#039;t know, that&#039;s one of my favorite tricks. Most people don&#039;t know about {foo,bar,baz} in shell scripts and command line shortcuts. And mkdir -p is generally awesome.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2100">jobicoppola</a>.</p>
<p>I don&#8217;t know, that&#8217;s one of my favorite tricks. Most people don&#8217;t know about {foo,bar,baz} in shell scripts and command line shortcuts. And mkdir -p is generally awesome.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jobicoppola		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-2100</link>

		<dc:creator><![CDATA[jobicoppola]]></dc:creator>
		<pubDate>Tue, 11 Oct 2011 18:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-2100</guid>

					<description><![CDATA[Part of the fun of &#039;mkdir -p&#039; is you can do things like:

&lt;code&gt;mkdir -p site-cookbooks/wordpress/{recipes,attributes,templates/default}&lt;/code&gt;

...although I guess that is no longer considered best practice, as you stated.  :)]]></description>
			<content:encoded><![CDATA[<p>Part of the fun of &#8216;mkdir -p&#8217; is you can do things like:</p>
<p><code>mkdir -p site-cookbooks/wordpress/{recipes,attributes,templates/default}</code></p>
<p>&#8230;although I guess that is no longer considered best practice, as you stated.  🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: chef_newb		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1936</link>

		<dc:creator><![CDATA[chef_newb]]></dc:creator>
		<pubDate>Wed, 28 Sep 2011 19:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1936</guid>

					<description><![CDATA[Hi.

Thanks for getting back on this.. I will try to look into the &#039;knife cookbook site install...&#039; approach.

Cheers.]]></description>
			<content:encoded><![CDATA[<p>Hi.</p>
<p>Thanks for getting back on this.. I will try to look into the &#8216;knife cookbook site install&#8230;&#8217; approach.</p>
<p>Cheers.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1870</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Sat, 24 Sep 2011 00:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1870</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1694&quot;&gt;rob&lt;/a&gt;.

Yeah, this is a new thing. They are depreciating the pattern that I described where you have a chef_repo/cookbooks and chef_repo/site-cookbooks and that you can over-ride / customize cookbooks that are in chef_repo/cookbooks with files in the same directory structure as a cookbook in chef_repo/site-cookbooks.

Opsocde is promoting the use of the knife cookbook site install to implement the git vendor branch pattern as the way to create local changes to standard cookbooks...

That&#039;s a whole &#039;nother  blog post someday...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1694">rob</a>.</p>
<p>Yeah, this is a new thing. They are depreciating the pattern that I described where you have a chef_repo/cookbooks and chef_repo/site-cookbooks and that you can over-ride / customize cookbooks that are in chef_repo/cookbooks with files in the same directory structure as a cookbook in chef_repo/site-cookbooks.</p>
<p>Opsocde is promoting the use of the knife cookbook site install to implement the git vendor branch pattern as the way to create local changes to standard cookbooks&#8230;</p>
<p>That&#8217;s a whole &#8216;nother  blog post someday&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1869</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Sat, 24 Sep 2011 00:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1869</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1835&quot;&gt;chef_newb&lt;/a&gt;.

Don&#039;t know if you figured it out or not. I don&#039;t know specificly why, but you can see if the /etc/sudoers got configured as expected. There is a slight danger that if the recipe screws up, it could lock you out of sudo access of the instance. (I.e. if it removes the entry for the Ubuntu user or removes the setting for NOPASSWORD for Ubuntu.) The only way I know to recover from that would be to shutdown the instance and mount the ebs root volume on another instance, and fix it. That only works if the original instace was an EBS backed instance and not a SPOT instance.

Otherwise, assuming you were just going thru the tutorial, start over...

But it would be good to look at the /etc/sudoers and see that it has all your users and it has them set for NOPASSWORD.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1835">chef_newb</a>.</p>
<p>Don&#8217;t know if you figured it out or not. I don&#8217;t know specificly why, but you can see if the /etc/sudoers got configured as expected. There is a slight danger that if the recipe screws up, it could lock you out of sudo access of the instance. (I.e. if it removes the entry for the Ubuntu user or removes the setting for NOPASSWORD for Ubuntu.) The only way I know to recover from that would be to shutdown the instance and mount the ebs root volume on another instance, and fix it. That only works if the original instace was an EBS backed instance and not a SPOT instance.</p>
<p>Otherwise, assuming you were just going thru the tutorial, start over&#8230;</p>
<p>But it would be good to look at the /etc/sudoers and see that it has all your users and it has them set for NOPASSWORD.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: chef_newb		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1835</link>

		<dc:creator><![CDATA[chef_newb]]></dc:creator>
		<pubDate>Wed, 21 Sep 2011 16:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1835</guid>

					<description><![CDATA[Hi.

Thanks for the tutorial.  Really helped... everything seems to work except for the sudo cookbook part.  When I follow the instructions for that and include it in my role all users seem to ask for passwords, including the ubuntu user.

Any ideas ?

Thanks for your help.]]></description>
			<content:encoded><![CDATA[<p>Hi.</p>
<p>Thanks for the tutorial.  Really helped&#8230; everything seems to work except for the sudo cookbook part.  When I follow the instructions for that and include it in my role all users seem to ask for passwords, including the ubuntu user.</p>
<p>Any ideas ?</p>
<p>Thanks for your help.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rob		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1694</link>

		<dc:creator><![CDATA[rob]]></dc:creator>
		<pubDate>Sat, 10 Sep 2011 02:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1694</guid>

					<description><![CDATA[thanks! i&#039;ve never used Chef before but i think it&#039;s great. i&#039;m going to see if i can work out how to get it to use AWS RDS rather than MySQL as that sounds like an interesting way to learn Knife.

BTW - did you also see this warning at the beginning?
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
WARNING: The cookbooks: sudo, wordpress exist in multiple places in your cookbook_path.
A composite version of these cookbooks has been compiled for uploading.

IMPORTANT: In a future version of Chef, this behavior will be removed and you will no longer
be able to have the same version of a cookbook in multiple places in your cookbook_path.
WARNING: The affected cookbooks are located:
sudo:      
    /home/robert/chef-repo/cookbooks/sudo
    /home/robert/chef-repo/site-cookbooks/sudo
wordpress: 
    /home/robert/chef-repo/cookbooks/wordpress
    /home/robert/chef-repo/site-cookbooks/wordpress]]></description>
			<content:encoded><![CDATA[<p>thanks! i&#8217;ve never used Chef before but i think it&#8217;s great. i&#8217;m going to see if i can work out how to get it to use AWS RDS rather than MySQL as that sounds like an interesting way to learn Knife.</p>
<p>BTW &#8211; did you also see this warning at the beginning?<br />
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br />
WARNING: The cookbooks: sudo, wordpress exist in multiple places in your cookbook_path.<br />
A composite version of these cookbooks has been compiled for uploading.</p>
<p>IMPORTANT: In a future version of Chef, this behavior will be removed and you will no longer<br />
be able to have the same version of a cookbook in multiple places in your cookbook_path.<br />
WARNING: The affected cookbooks are located:<br />
sudo:<br />
    /home/robert/chef-repo/cookbooks/sudo<br />
    /home/robert/chef-repo/site-cookbooks/sudo<br />
wordpress:<br />
    /home/robert/chef-repo/cookbooks/wordpress<br />
    /home/robert/chef-repo/site-cookbooks/wordpress</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1691</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Sat, 10 Sep 2011 00:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=599#comment-1691</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1689&quot;&gt;rob&lt;/a&gt;.

You bring up a good point. By default, if the EC2 instance is terminated, the attached EBS volumes will also be terminated. But you can change that behvior when you create the instance or after you create the instance. The latest versions of the &lt;em&gt;knife ec2 server create&lt;/em&gt; command now have an argument to set things so that the ebs volume will NOT be deleted automatically. I am changing the document to show that.

You can also change the behavior at any time after the instance has been created. But there is no way I know of to do it with a GUI. The &lt;a href=&quot;http://aws.amazon.com/console/&quot; rel=&quot;nofollow&quot;&gt;AWS Console&lt;/a&gt;, &lt;a href=&quot;http://www.ylastic.com/&quot; rel=&quot;nofollow&quot;&gt;Ylastic&lt;/a&gt; and &lt;a href=&quot;https://bitbucket.org/winebarrel/elasticfox-ec2tag&quot; rel=&quot;nofollow&quot;&gt;ElasticFox&lt;/a&gt; don&#039;t expose that feature. So the only way I know of to set the existing EBS volume to disable the default &quot;Delete on Termination&quot; is to use the ec2-api-tools Command Line tools. A great article on this is &lt;a href=&quot;http://alestic.com/2010/01/ec2-instance-locking&quot; rel=&quot;nofollow&quot;&gt;Three Ways to Protect EC2 Instances from Accidental Termination and Loss of Data&lt;/a&gt; by the ever educational &lt;a href=&quot;http://www.anvilon.com/&quot; rel=&quot;nofollow&quot;&gt;Eric Hammond&lt;/a&gt; His site, &lt;a href=&quot;http://alestic.com/&quot; rel=&quot;nofollow&quot;&gt;Alestic&lt;/a&gt;, is great resource for Ubuntu on EC2. 

The important bit in this article is:
&lt;code&gt;ec2-modify-instance-attribute --block-device-mapping /dev/sda1=::false i-d10ae5bd&lt;/code&gt; where &lt;em&gt;i-d10ae5bd&lt;/em&gt; is the instance id of your AWS EC2 instance. You would have gotten that from the output of the original &lt;em&gt;knife ec2 server create&lt;/em&gt; command or at any time using the AWS Console for EC2.

Instructions for installing and basic usage of AWS ec2-api-tools:
&lt;a href=&quot;http://aws.amazon.com/developertools/351&quot; rel=&quot;nofollow&quot;&gt;AWS EC2 API Tools Home&lt;/a&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/EC2StartersGuide&quot; rel=&quot;nofollow&quot;&gt;Ubuntu&lt;/a&gt;
&lt;a href=&quot;http://linuxsysadminblog.com/2009/06/howto-get-started-with-amazon-ec2-api-tools/&quot; rel=&quot;nofollow&quot;&gt;General Linux&lt;/a&gt;
&lt;a href=&quot;http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/&quot; rel=&quot;nofollow&quot;&gt;Macintosh&lt;/a&gt;
I don&#039;t do Windows. You&#039;ll have to &lt;a href=&quot;http://www.google.com/search?sourceid=chrome&amp;ie=UTF-8&amp;q=ec2-api-tools+tutorial#sclient=psy&amp;hl=en&amp;tbo=1&amp;tbs=qdr:y&amp;source=hp&amp;q=ec2-api-tools+windows&amp;pbx=1&amp;oq=ec2-api-tools+windows&amp;aq=f&amp;aqi=g1&amp;aql=&amp;gs_sm=e&amp;gs_upl=1741100l1742025l0l1742122l7l6l0l6l6l0l258l258l2-1l1l0&amp;tbo=1&amp;bav=on.2,or.r_gc.r_pw.r_cp.&amp;fp=152ed3abf3404bc1&amp;biw=1920&amp;bih=1105&quot; rel=&quot;nofollow&quot;&gt;Google&lt;/a&gt; or I supose Bing it]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/comment-page-1/#comment-1689">rob</a>.</p>
<p>You bring up a good point. By default, if the EC2 instance is terminated, the attached EBS volumes will also be terminated. But you can change that behvior when you create the instance or after you create the instance. The latest versions of the <em>knife ec2 server create</em> command now have an argument to set things so that the ebs volume will NOT be deleted automatically. I am changing the document to show that.</p>
<p>You can also change the behavior at any time after the instance has been created. But there is no way I know of to do it with a GUI. The <a href="http://aws.amazon.com/console/" rel="nofollow">AWS Console</a>, <a href="http://www.ylastic.com/" rel="nofollow">Ylastic</a> and <a href="https://bitbucket.org/winebarrel/elasticfox-ec2tag" rel="nofollow">ElasticFox</a> don&#8217;t expose that feature. So the only way I know of to set the existing EBS volume to disable the default &#8220;Delete on Termination&#8221; is to use the ec2-api-tools Command Line tools. A great article on this is <a href="http://alestic.com/2010/01/ec2-instance-locking" rel="nofollow">Three Ways to Protect EC2 Instances from Accidental Termination and Loss of Data</a> by the ever educational <a href="http://www.anvilon.com/" rel="nofollow">Eric Hammond</a> His site, <a href="http://alestic.com/" rel="nofollow">Alestic</a>, is great resource for Ubuntu on EC2. </p>
<p>The important bit in this article is:<br />
<code>ec2-modify-instance-attribute --block-device-mapping /dev/sda1=::false i-d10ae5bd</code> where <em>i-d10ae5bd</em> is the instance id of your AWS EC2 instance. You would have gotten that from the output of the original <em>knife ec2 server create</em> command or at any time using the AWS Console for EC2.</p>
<p>Instructions for installing and basic usage of AWS ec2-api-tools:<br />
<a href="http://aws.amazon.com/developertools/351" rel="nofollow">AWS EC2 API Tools Home</a><br />
<a href="https://help.ubuntu.com/community/EC2StartersGuide" rel="nofollow">Ubuntu</a><br />
<a href="http://linuxsysadminblog.com/2009/06/howto-get-started-with-amazon-ec2-api-tools/" rel="nofollow">General Linux</a><br />
<a href="http://www.dougjaworski.com/blog/how-to-install-amazon-ec2-tools-on-a-mac/" rel="nofollow">Macintosh</a><br />
I don&#8217;t do Windows. You&#8217;ll have to <a href="http://www.google.com/search?sourceid=chrome&#038;ie=UTF-8&#038;q=ec2-api-tools+tutorial#sclient=psy&#038;hl=en&#038;tbo=1&#038;tbs=qdr:y&#038;source=hp&#038;q=ec2-api-tools+windows&#038;pbx=1&#038;oq=ec2-api-tools+windows&#038;aq=f&#038;aqi=g1&#038;aql=&#038;gs_sm=e&#038;gs_upl=1741100l1742025l0l1742122l7l6l0l6l6l0l258l258l2-1l1l0&#038;tbo=1&#038;bav=on.2,or.r_gc.r_pw.r_cp.&#038;fp=152ed3abf3404bc1&#038;biw=1920&#038;bih=1105" rel="nofollow">Google</a> or I supose Bing it</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
