nginx_pagespeed

Puppet module for downloading Nginx source and Google pagespeed.

Karan Batra-Daitch

kbatra

9,061 downloads

9,061 latest version

2.1 quality score

Version information

  • 0.1.0 (latest)
released Oct 9th 2013

Start using this module

Documentation

kbatra/nginx_pagespeed — version 0.1.0 Oct 9th 2013

Puppet Nginx Pagespeed Module

This module downloads the Google ngx_pagespeed module for nginx together with nginx source code. The idea is that it may be useful in and of itself or be used with the passenger module.

Basic usage

Install nginx_pagespeed with

include nginx_pagespeed

By default, the downloads are made to /tmp, unless you specify {module_home}.

class { 'nginx_pagespeed': 
    nginx_version => '1.4.2',
    ngx_pagespeed_version => 'release-1.6.29.5-beta',
    google_psol_version => '1.6.29.5',
    module_home => '/home/vagrant'
}

If using with the passenger module,

class { 'nginx_pagespeed': 
    nginx_version => '1.4.2',
    ngx_pagespeed_version => 'release-1.6.29.5-beta',
    google_psol_version => '1.6.29.5',
    module_home => '/home/vagrant'
} ->
class { 'nginx_passenger':
    nginx_source_dir => '/home/vagrant/nginx-1.4.2',
    nginx_extra_configure_flags =>  '--add-module=/home/vagrant/ngx_pagespeed-release-1.6.29.5-beta'
}

I didn't abstract some assumptions about the extracted folders as they are beyond my control as well, i.e. ngx_pagespeed module would be at ${module_home}/ngx_pagespeed-${ngx_pagespeed_version} and nginx would be at ${module_home}/nginx-${nginx_version}.

MIT License

Copyright (C) 2013 by Karan Batra

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN