Trigger apache2 logdir mount and fix logdir on Amazon Linux.
Let templates notify the logdir existence test.

Let existence of logdir always be checked.
Add a sleep second before restarting/reloading apache2 to avoid possible timing issues on small instances.
Quote DB name on granting.
set right group on deployed apps

cr https://cr.amazon.com/r/1526530/
Fix php deployment cookbook tests

cr https://cr.amazon.com/r/1536494/
Fix bind_mounts map in opsworks_initial_setup

Make sure that the ephemeral device is used for the bind mounts both
under Amazon Linux and Ubuntu. It was previously only working under
Ubuntu.

cr https://cr.amazon.com/r/1536527/
alternative/fallback install of bundler for more robustness
Fix creation of rc.local on Amazon Linux and add VG activation on device scanning.
expand the yum-lock timeout patch to all instance types
disable yum update-motd plugin
Trigger autofs restart once when OpsWorks map and/or master map changed.
fix and test database.yml generation
Let every file change trigger an autofs restart.
Fix ganglia cookbook plugin system and layer awareness.

cr https://cr.amazon.com/r/1616809/

group conditional into block

cr https://cr.amazon.com/r/1616809/
Fix stop ganglia client conditional
change yum.conf instead of replacing it
Enabling a mount point (i.e. writing /etc/fstab) does not depend on /etc/mtab entry.
Chef 0.9 seems to ignore duplicate resources - work around that for fstab entry.
Stricter dependency flow to avoid race conditions between blkid and mkfs.