Comments
-
Greg Hurrell
See also ticket #1720, which is about moving to Unicorn 2.0.x after the Amazon Linux AMI switch is done.
-
Greg Hurrell
Just gonna start collecting notes on this one:
-
Greg Hurrell
Notes on initial instance set-up via CloudInit:
-
Greg Hurrell
This migration is by necessity going to be fairly manual in nature, despite the fact that I have tried to structure my instances in an eminently "clonable" fashion.
At the moment I have the base image, easily clonable from an EBS snapshot, and a data snapshot.
As things currently stand, even though most of the important data "lives" on the data snapshot and can be cloned at will and attached to any instance, there is still some custom configuration that must be done on the host image.
I'm looking at some configuration tools to see if I can make at least some of that initial host image set-up repeatable in an automated fashion. Things like installing packages and building other stuff (eg. nginx) from source.
It may turn out that full-blown configuration management tools like Chef and Puppet are overkill for this task, and a simple shell script maybe superior (think how a simple shell script can be infinitely superior to Capistrano for single-server deployments, and possibly multi-server ones too). But in any case I am going to look at them.
There are at least a couple of things, however, that I haven't been able to shift over to the data partitions. For example, things like actual user accounts. These are defined in
/etc/passwd
and I need to think about a way in which I can set them up on the fly in a newly-created instance, while preserving the same UIDs and GIDs (I don't want the numbers to be mismatched when I mount my data volume).In the meantime, some reading on Chef and Puppet:
- "Puppet vs Chef": http://bhuga.net/node/46
- "Puppet versus Chef: 10 reasons why Puppet wins": http://bitfieldconsulting.com/puppet-vs-chef
-
Greg Hurrell
See also ticket #1667 ("Update to memcached 1.4.5"). Will probably end up doing that update at the same time.
-
Greg Hurrell
See also ticket #1496 ("Update to OpenSSH 5.7/5.7p1 on server"). Again will evaluate that ticket when the time for the migration arrives.
-
Greg Hurrell
Not specifically about the Amazon Linux AMI, but a useful overview of Puppet on EC2:
Installation kick-start notes:
-
Greg Hurrell
Using Puppet on a single machine, "standalone":
-
Greg Hurrell
Possible pitfall of using "standalone" mode and how to get around it:
-
Greg Hurrell
Official docs on standalone use:
Add a comment
Comments are now closed for this issue.