/vagrant-puppet-centos-6.5-php5.5-template

A template project containing the puppet for a basic VM that runs apache, PHP5.5 on centos.

Primary LanguagePuppetMIT LicenseMIT

Vagrant with Puppet to Provision a Webserver

A template project containing the puppet for a basic VM that runs apache, PHP 5.5 on Centos 6.5.

Configuration

This VM will work out of the box. However to use a hostname applicable you, change the hostname line in the Vagrantfile

config.vm.hostname = "change-me"

And rename the heira data file "puppet/hieradata/change-me.yaml" to match the hostname.

How to use

Just use it like normal

vagrant up

If you don't have a centos-6.5 base image, use veewee to make one.

veewee vbox define 'centos-6.5' 'CentOS-6.5-x86_64-netboot'
veewee vbox build 'centos-6.5'
veewee vbox export 'centos-6.5'
vagrant box add 'centos-6.5' 'centos-6.5.box'

Webserver

You can find the webserver running at http://192.168.40.13.

The webroot is the "web/" directory

Xdebug

Xdebug is configured to connect back to the host machine on port 9000 with xdebug key: php-xdebug.

Firewall

IP Tables has been stopped and disabled.

Network interfaces

Guest machine is 192.168.40.13 Host machine is 192.168.40.1 from guest.

Public IP is also provisioned. Will be whatever is assigned via DHCP.