Wrap passenger specific variables in an IfModule so that they only get run when passenger is installed/enabled. Prevents apache from blowing up earlier in a run when it is restarted.
Disable and remove the default apache files that are created when apache is installed.
Override the default s3 config creation
Add a bash profile resource/provider that allows us to specify a bash profile in our user data. This custom resource uses erb to inject attributes from our node into the inline template (e.g. server name or rails env).
Use last action in our log rotate scripts so that we can upload the gzipped log file to s3 on this rotation (last action happens after compress).
Add our internal server IP’s to /etc/hosts
Application specific setup tasks and templates
Add recipe to mount particular directories to external volumes. In particular this allows us to place log files on an ephemeral ec2 volume where they are rotated and backed up to s3 with out filling up the root volume.