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
- Host: GitHub
- URL: https://github.com/pyrocms/puppet-pyrocms
- Owner: pyrocms
- Created: 2012-07-26T10:21:58.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-12-28T17:35:25.000Z (over 12 years ago)
- Last Synced: 2025-03-24T04:50:53.497Z (about 1 year ago)
- Language: Puppet
- Homepage: pyrocms.com
- Size: 512 KB
- Stars: 38
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.