Coder Social home page Coder Social logo

puppet-nginx's People

Contributors

antonbabenko avatar ashwoods avatar benoitcattie avatar orthogonous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

puppet-nginx's Issues

Bad path for 'ln' command

In manifests/init.pp you have a path of '/usr/bin' when you call 'ln' to create the symlink. Under Ubuntu, that file is in '/bin' so the command fails. The following will fix it:

path => ["/usr/bin/", "/bin"],

Security problem with your generated configs

As it stands, the configs your module generates exhibit the problem described here:

https://nealpoole.com/blog/2011/04/setting-up-php-fastcgi-and-nginx-dont-trust-the-tutorials-check-your-configuration/

In brief, any file in the server's web space can be executed as php. Ie there's any sort of file uploads by users it becomes dangerous. eg user uploads "picture.gif", which is in fact a php file, and then addresses it as "path/picture.gif/foo.php".

Easily fixed with a test for file existence.

Use file resource to create symlinks in sites-enabled directory

I'd like to be able to do:

  file{ '/etc/nginx/sites-enabled':
    ensure => directory,
    recurse => true,
    purge => true,
  }

This fails because the symlinks in this directory are created with an exec instead of a file resource. (at the end of manifests/install_site.pp)

I'm not sure why you've done it this way. Couldn't a file resource be used to create the symlinks?

It would be cleaner if the purging of the sites-enabled directory was done by the nginx module, presumably depending on some parameter being set to trigger this behaviour.

string#each is deprecated as of ruby 1.9

templates/fcgi_site.erb expects to be able to iterate on string variables with each. In Ruby 1.8, this iterated over lines. That's deprecated by Ruby 1.9.

Specifically, templates/fcgi_site.erb tries to iterate on real_server_name and include.

Getting a "Duplicate definition" error when using this module in a new Vagran box

When I attempt to use this module in a new CentOS 5.5 box (virtualized, managed using Vagrant) I get the following error:

[default] Duplicate definition: File[undef] is already defined in file /tmp/vagrant-puppet/modules-0/nginx/manifests/init.pp at line 56; cannot redefine at /tmp/vagrant-puppet/modules-0/nginx/manifests/init.pp:72 on node centos5.vagrant.internal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.