Added puppet module skeleton (also puppet module tool is lame)

This commit is contained in:
2013-10-19 10:37:30 -04:00
parent 9895e8efbf
commit 363d5ef262
4 changed files with 118 additions and 9 deletions

36
puppet/README.md Normal file
View File

@@ -0,0 +1,36 @@
mercy
=====
A puppet module for installing the Mercy Flask application
Requirements
============
This puppet module assumes that you have:
* Working apache with a puppet service
* Working python 2.7 and pip
* Working postgres with a username, password, and database for mercy to use
Aside from that, the module has no dependencies.
Usage
=========
class { 'mercy::application':
environment => 'dev|production',
ensure => 'absent|latest|MAJOR-MINOR',
vhost_dir => '/etc/apache/httpd/conf.d',
apache_service => 'httpd',
postgres_uri => 'localhost',
postgres_user => 'mercy',
postgres_pw => 'mercy',
postgres_db => 'mercy'
}
If 'environment' is dev, then the mercy application will be installed via a tarball located in ./mercy/files/mercy-${ensure}.tar.gz. If 'environment' is production, then mercy will be installed via pip and ensured at the given version.
Events
======
This puppet module will notify your apache service whenever the vhost is modified, or the mercy application version is updated, since an apache graceful restart will be required in either case.