An open API service indexing awesome lists of open source software.

https://github.com/pyrocms/puppet-pyrocms

Puppet manifests for running PyroCMS with MySQL, PostgreSQL and SQLite
https://github.com/pyrocms/puppet-pyrocms

Last synced: 7 months ago
JSON representation

Puppet manifests for running PyroCMS with MySQL, PostgreSQL and SQLite

Awesome Lists containing this project

README

          

# PyroCMS Puppet

Puppet is a convenient and idempotent way to provision a server. That means you can install stuff without needing
to do it manually, and lets be honest, setting up a LAMP stack is the most menial task in the world after pagination.

These manifests were designed to work with [vagrant-pyrocms](https://github.com/pyrocms/vagrant-pyrocms), but they will
work just fine solo.

## Facter

Puppet uses something called Facter to get information about the enviornment. In our vagrant-pyrocms setup we
do the following:

puppet.facter = {
"fqdn" => "dev.pyrocms.mysql",
"hostname" => "www",
"docroot" => '/vagrant/www/pyrocms/'
}

You will need to configure Facter accordingly.

## Manfiests

The names of our manifests are fairly obvious:

* ubuntu-apache2-mysql-php5.pp
* ubuntu-apache2-pgsql-php5.pp
* ubuntu-apache2-sqlite-php5.pp

These are not tied to specific versions of Apache, PHP or their database systems, but will install
whatever they can via apt, looking at the default repositories for the version of Ubuntu you decide
on using.

Do not try using these on 13.04 or 13.10, as Ubuntu uses Apache 2.4 and for some reason these modules
are rather broken for that version. 12.10 works very nicely.

### MySQL Credentials

__Database:__ pyrocms
__User:__ pyrocms
__Pass:__ password

### PostgreSQL Credentials

__Database:__ pyrocms
__User:__ pyrocms
__Pass:__ password

### SQLite Credentials

__Database:__ /vagrant/db/pyrocms.sqlite

## Adding Manifiests

The place is to add multiple "stock" Puppet manifest files in `manifests/` for various setups like:

* ubuntu + nginx + PHP 5 + MySQL
* ubuntu + nginx + PHP 5 + Postgres
* ubuntu + nginx + PHP 5 + SQLite
* centos + apache + PHP 5 + SQLite
* centos + nginx + PHP 5 + Postgres

If you would like to submit a manfest, please simply send in a pull request with a logical name,
like `ubuntu-nginx-php5-mysql.pp` and we'll merge it.