T
T
Thomas Storm2016-08-10 17:40:56
Nginx
Thomas Storm, 2016-08-10 17:40:56

How to use arrays in Nginx Puppet module?

Connoisseurs Puppeteer question!
There is a njinx server role in the hair, in which I prescribe ips in the whitelist

puppet::nginx::vhosts:
  vhost1:
    config_file: 'some_config_file.conf.erb'
    server_names: 'example.com'
    acl_ip_whitelists:
        - '192.168.1.1'
        - '192.168.1.2'
        - '192.168.1.3'
        ....
        - '192.168.1.100500'

The problem is that I have quite a few inputs, and for most of them the atzli are the same in some cases. Accordingly, if I need to add another ipsnik to the atsl, I need to go through each input and manually add it (which is quite tedious, because I'm lazy).
I could divide the ips into certain groups (eg office1 office2 office3 server1 dmz1 and so on) and create an array for each group, and instead of ips specify the name of the array, BUT
the actual question is - does pappet parse this thing?
Please answer on the topic, workrounds are not interested.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question