Provisioning an Ubuntu 12.04 instance with PostgreSQL using Chef, following Ch 11.1 - 'PostgreSQL' in Ben Dixon's Leanpub Reliably Deploying Rails Applications (find here).
- ruby (2.0)
- knife-solo (0.4)
- berkshelf (2.0)
- berks install
- knife solo prepare root@<my server ip>
- knife solo cook root@<my server ip>
The foregoing got PostgreSQL onto my server (and use and installation configuration was as Ben's chapter promised), however I was unable to add the Monit server:
Chef Client failed. 1 resources updated in 1.738820267 seconds
[2014-03-04T14:36:06-05:00] ERROR: template[/etc/monit/conf.d/postgres.conf] (monit_configs-tlq::postgres line 1) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/monit/conf.d does not exist.
[2014-03-04T14:36:06-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.