Secure data bag items with chef solo
How to generate encrypted data bag item with knife and chef-solo
This post is mostly a memo to myself, because I often forget how to how to create encrypted data bag items..
Here is the deal. We know how to generate regular data bag items with knife: knife data bag create DATA_BAG_NAME DATA_BAG_ITEM ( for those who didn’t know ). …
Simple and efficient backups with Tarsnap
Backups! Everyone knows about backup importance, but because of configuration complexity many just giving up hoping to get away without them..
And then a day, week or year later it bites you in the butt! I know this because I’ve been there.. couple times actually. …
Provision with Chef – baby steps (installation and initial configuration)
In the previous post I wrote about our pre-chef approach for instance bootstrapping.
Today I will explain the process of our migration to Chef. I’m sure that could be useful for someone down the road, who’s trying to travel on similar route. …
Provision machines with AWS – custom bootsrapper
In the previous post I wrote a little about our transition to AWS.
Now I will tell a little more about our instance bootstrap process.
Basically at the end of the previous post we discussed tree possible options for automated machine startup:
- Create different AMI for each server role. …
History of infrastructure at FastCompany
Recently I started doing quite a bit of operations stuff at FastCompany, so I decided to write couple articles to illustrate our transition to AWS and later to Chef. There were few bumps on the road, some of you may be able to avoid them by reading these posts .. …
Nullmailer and Fakemail – two little tools for every developer
From time to time I need to work with outgoing mails: change templates, make sure they display correct data etc. You could go with some full blown MTA like postfix and it’s actually pretty easy to install and configure for outgoing mail sending. I personally tend to not install MTA on my dev box, …
Bootsrap your aws nodes with chef using cloud-init
Recently I was trying to figure a way to setup chef-client on our AWS machines in a way we could start / reboot them through Amazon UI or knife.
It turns out that Amazon AMI and most official Ubuntu AMIs provide cloud-init tool which we can use to manipulate user-data. …
Problem with Drupal 6 CURL and Simpletest
When I had to switch from my usual Linux dev box to Mac 10.7 recently (because of Sandy hurricane), I noticed a problem with CURL when I was running my tests through command line.
Basically CURL was just returning output to STDOUT instead of passing it to a variable as it should because of RETURNTRANSFER option in the simpletest class. …
Proxy parts of Drupal site with Nginx.
Sometimes it could be quite useful to proxy a section of your site to the different multisite install, running different version of Drupal.
Real world scenario: When you go to www.fastcompany.com/mba (which is sadly still running on Drupal 5 at the time of writing ), …
Nginx proxy_read_timeout catch or double php script execution
I was working on import script recently. Expected execution time was more than 60 seconds, the default value of proxy_read_timeout directive in Nginx that’s why Nginx displayed nice 504 Gateway Timeout error every time I run the script, even though the script was still running on the back end. …