This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from eugene-manuilov/release/2.0-beta3
Release 2.0-beta3
- Loading branch information
Showing
21 changed files
with
216 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,3 @@ | |
'redis' => '1.2.3', | ||
} | ||
} | ||
|
||
phalconvm::utils::puppet_modules { 'maxchk': | ||
modules => { | ||
'varnish' => '1.0.0', | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
provision/puppet/modules/phalconvm/manifests/elasticsearch.pp
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
8 changes: 7 additions & 1 deletion
8
provision/puppet/modules/phalconvm/manifests/utils/puppet_modules.pp
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
define phalconvm::utils::puppet_modules( $modules ) { | ||
$modules.each |$module, $version| { | ||
$command = $version ? { | ||
false => "puppet module install ${name}-${module}", | ||
default => "puppet module install ${name}-${module} --version ${version}", | ||
} | ||
|
||
exec { "${name}-${module}": | ||
command => "/opt/puppetlabs/bin/puppet module install ${name}-${module} --version ${version}", | ||
command => $command, | ||
creates => "/etc/puppetlabs/code/environments/production/modules/${module}/", | ||
path => '/opt/puppetlabs/bin', | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
52 changes: 52 additions & 0 deletions
52
provision/puppet/modules/phalconvm/templates/varnish/default.vcl.erb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# This is an example VCL file for Varnish. | ||
# | ||
# It does not do anything by default, delegating control to the | ||
# builtin VCL. The builtin VCL is called when there is no explicit | ||
# return statement. | ||
# | ||
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | ||
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples. | ||
|
||
# Marker to tell the VCL compiler that this VCL has been adapted to the | ||
# new 4.0 format. | ||
vcl 4.0; | ||
|
||
# Default backend definition. Set this to point to your content server. | ||
backend default { | ||
.host = "127.0.0.1"; | ||
.port = "80"; | ||
} | ||
|
||
sub vcl_recv { | ||
# Happens before we check if we have this in cache already. | ||
# | ||
# Typically you clean up the request here, removing cookies you don't need, | ||
# rewriting the request, etc. | ||
|
||
# unset cookies for images, stylesheets and javascript files to be able to cache it | ||
if (req.url ~ "\.(css|js|png|gif|jp(e)?g)") { | ||
unset req.http.cookie; | ||
} | ||
|
||
# bypass audio and video files and not cache it | ||
if (req.url ~ "\.(mp4|mp3|avi)") { | ||
return (pass); | ||
} | ||
|
||
return (hash); | ||
} | ||
|
||
sub vcl_backend_response { | ||
# Happens after we have read the response headers from the backend. | ||
# | ||
# Here you clean the response headers, removing silly Set-Cookie headers | ||
# and other mistakes your backend does. | ||
} | ||
|
||
sub vcl_deliver { | ||
# Happens when we have all the pieces we need, and are about to send the | ||
# response to the client. | ||
# | ||
# You can do accounting or modifying the final object here. | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ restart() { | |
} | ||
|
||
restart nginx | ||
restart varnish | ||
restart php7.0-fpm | ||
restart mysql | ||
restart postgresql | ||
|
This file contains 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
Oops, something went wrong.