Version information
released May 25th 2015
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'darkmantle-lamp', '1.1.0'
Learn more about managing modules with a PuppetfileDocumentation
darkmantle/lamp — version 1.1.0 May 25th 2015
Darkmantle Puppet: LAMP
This is the LAMP module in my series of WebDev Puppet Configurations
Installation
Puppet
puppet module install darkmantle-lamp
Git Submodule
git submodule add https://github.com/darkmantle/puppet-lamp.git modules/lamp
Usage
Default setup
Create a manifest that has the following code:
Exec {
path => ["/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/local/sbin"]
}
include lamp::apache
include lamp::php
# default root password is 'password'
include lamp::mysql
include lamp::phpmyadmin
exec {"apt-get update":
command => "apt-get update"
}
Setup with custom PHP5 packages or root MySQL password
Exec {
path => ["/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/local/sbin"]
}
include lamp::apache
include lamp::phpmyadmin
include lamp::mysql
# Note: only installs packages that begin with php5-
class { 'lamp::php':
php5Packages => ['list','of','packages']
}
class { 'lamp':
rootPassword => 'YOUR-PASSWORD-HERE'
}
exec {"apt-get update":
command => "apt-get update"
}
### Creating a MySQL Database & User
```puppet
Exec {
path => ["/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/local/sbin"]
}
include lamp::apache
include lamp::phpmyadmin
include lamp::mysql
include lamp::php
lamp::db {'database-name':
user => 'user',
password => 'password'
}