lamp

LAMP Stack using Apache and PHP5

David Hopson

darkmantle

9,390 downloads

8,772 latest version

4.0 quality score

Version information

  • 1.1.0 (latest)
  • 1.0.9 (deleted)
  • 1.0.8 (deleted)
  • 1.0.7 (deleted)
  • 1.0.6 (deleted)
  • 1.0.5 (deleted)
  • 1.0.4 (deleted)
  • 1.0.3 (deleted)
  • 1.0.2 (deleted)
  • 1.0.1 (deleted)
  • 1.0.0 (deleted)
released May 25th 2015
This version is compatible with:
  • Ubuntu

Start using this module

Documentation

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'
}