Created
January 28, 2014 11:02
-
-
Save lorello/8665713 to your computer and use it in GitHub Desktop.
Puppet example to manage Ez Publish sites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node "frontend[0-9]+" inherits frontends { | |
| } | |
| node frontends { | |
| /* | |
| One rule to manage them all: | |
| - create path /var/www/comunebello2013/web on front-end's localstorage | |
| - create shared path on /storage/www/comunebello2013 | |
| - pull the code from tag '2.0' in git://myrepos/openpa/ezcore... or svn://... | |
| - create db comunebello2013, user comunebello2013 and a strong password for you | |
| - put db credentials and required extensions in site.ini | |
| - create solr-index comunebello2013 | |
| - create an nginx virtualhost | |
| */ | |
| ez::site { 'comunebello2013': | |
| domain => 'comunebello.tn.it', | |
| code_repo => 'openpa', | |
| code_version => '2.0', | |
| extensions => [ 'ezopenpa', 'ezpippo', 'ezpluto' ] | |
| php-pool => 'comuniricchi', | |
| } | |
| ez::site { 'comunennesimo': | |
| domain => 'comunennesimo.tn.it', | |
| code_repo => 'openpa', | |
| code_version => '1.3', | |
| extensions => [ 'ezpluto' ], | |
| php-pool => 'comunipoveri', | |
| } | |
| ez::site { 'bandodamiglioni': | |
| domain => 'bandodamiglioni.com', | |
| code_repo => 'ez52', | |
| code_version => '1.0', | |
| extensions => [ 'ezpaypal', 'ezmazzetta' ] | |
| php-pool => 'sharedpool', | |
| } | |
| php::pool { 'comuniricchi': | |
| port => 9001, | |
| min_threads => 10, | |
| max_threads => 100, | |
| max_spare => 25, | |
| memory_size => '256', | |
| } | |
| php::pool { 'comunipoveri': | |
| port => 9002, | |
| min_threads => 1, | |
| max_threads => 10, | |
| max_spare => 2, | |
| memory_size => '128', | |
| } | |
| php::pool { 'sharedpool': | |
| port => 9003, | |
| min_threads => 1, | |
| max_threads => 20, | |
| max_spare => 5, | |
| memory_size => '64', | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment