This project will deploy under the help with Puppet Apache/PHP/MySQL on a Virtual Machine (VM) under the help of most of the standard Puppetlabs puppet modules. It's easy to adapt and to see, how it could work in an example:
- install generated user account / ssh keys
- format and mount additional volumes
- set ntp client
- install MySQL Server with database and user
- install and configure Haproxy as SSL-Termination (needs >v1.5)
- provides ssl cert
- install apache with PHP and configured vhost
- install test web page
- provide monitoring with Nagios/Icinga (include pnp4nagios & SMS + Voice notification with Twilio service)
- builds a configuration package (deb/rpm) with fpm (using build.sh)
-
Virtual Linux Machine (Ubuntu 14.04 trusty)
-
1 Floating IP
-
2 attached volumes (vdb,vdc)
-
Puppet client (at least version 3)
Install server with all defaults (otherwise edit site.pp before apply puppet)
dpkg -i lamp-conf_01-master-1435250897-1_amd64.db
cd /etc/puppet
puppet apply manifests/site.pp
Developed for Ubuntu, works partly for OpenSUSE 13.2 (beside apparmor, ntp, Apache on 32bit systems) Will be expand. Sometimes only small changes are necessary (e.g. service 'ntpd' instead 'ntp').
- Fork it.
- Create a branch (
git checkout -b my_markup
) - Commit your changes (
git commit -am "Added Snarkdown"
) - Push to the branch (
git push origin my_markup
) - Open a [Pull Request][1]
- Enjoy a refreshing Diet Coke and wait
In this project are generated keys for ssh and ssl. Don't use this on your own site! There are ways described in the manifest how to generate new keys.