简体   繁体   中英

How to add nginx modules to puppet manifest?

I need to install Nginx with some modules on my virtual machine (Debian 7 x64). I use Vagrant and one recipe from Puphpet . Puphpet uses Hiera to configure Vagrant and Puppet installation way. By default in puphpet/config.yaml I have nginx section:

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? I could place the Puppet manifect provided by puphpet configuring Nginx, but it's huge and too hard to understand.

Author of puphpet here.

From my understanding, Nginx needs to be compiled with your chosen modules, they cannot be enabled/disabled like 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.

This is the Nginx Puppet module used in puphpet: https://github.com/jfryman/puppet-nginx/tree/v0.0.10/manifests/package

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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