简体   繁体   English

如何将Nginx模块添加到人偶清单?

[英]How to add nginx modules to puppet manifest?

I need to install Nginx with some modules on my virtual machine (Debian 7 x64). 我需要在虚拟机(Debian 7 x64)上安装带有某些模块的Nginx I use Vagrant and one recipe from Puphpet . 我使用VagrantPuphpet的一种食谱。 Puphpet uses Hiera to configure Vagrant and Puppet installation way. Puphpet使用Hiera配置流浪汉,木偶的安装方式。 By default in puphpet/config.yaml I have nginx section: 默认在puphpet / config.yaml中,我有nginx部分:

nginx:
    install: '1'
    settings:
        default_vhost: 1
        proxy_buffer_size: 128k
        proxy_buffers: '4 256k'
    upstreams: { }
    vhosts:
        rpfrz3ldtf65m:
            proxy: ''
            server_name: awesome.dev
            server_aliases:
                - www.awesome.dev
            www_root: /var/www/awesome
            listen_port: '80'
            location: \.php$
            index_files:
                - index.html
                - index.htm
                - index.php
            envvars:
                - 'APP_ENV dev'
            engine: php
            client_max_body_size: 1m
            ssl_cert: ''
            ssl_key: ''

I need Nginx modules image_filter , so where could I place the correspond information in this config? 我需要Nginx模块image_filter,那么我可以在该配置中放置相应的信息吗? I could place the Puppet manifect provided by puphpet configuring Nginx, but it's huge and too hard to understand. 我可以放置puphpet提供的配置Nginx的Puppet Manifect,但是它庞大且难以理解。

Author of puphpet here. puphpet的作者在这里。

From my understanding, Nginx needs to be compiled with your chosen modules, they cannot be enabled/disabled like Apache. 据我了解,Nginx需要使用您选择的模块进行编译,无法像Apache一样启用/禁用它们。

If the module you want is not installed in the Nginx package installed via puphpet, then that means it wasn't compiled in. You'll need to find another source that has that module compiled in, or compile Nginx yourself. 如果您想要的模块没有安装在通过puphpet安装的Nginx软件包中,则意味着它没有被编译。您需要找到另一个已编译该模块的源,或者自己编译Nginx。

This is the Nginx Puppet module used in puphpet: https://github.com/jfryman/puppet-nginx/tree/v0.0.10/manifests/package 这是puphpet中使用的Nginx Puppet模块: https : //github.com/jfryman/puppet-nginx/tree/v0.0.10/manifests/package

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM