Size: a a a

2021 April 27

MT

M T in nginx_ru
Good way
источник

AN

Anton Noginov in nginx_ru
No, you can also template configs with anything on your choice, but the idea is the same.
Either use full featured SCM, or build tiny one on your own.
источник

AR

Ayyappa R in nginx_ru
Do you mean this - https://www.ansible.com/products/tower ?
I see the free version is only 60 day valid
источник

IH

Ihor Horhul in nginx_ru
Its web UI
источник

IH

Ihor Horhul in nginx_ru
you dont need it, and it has free version AWX
источник

AR

Ayyappa R in nginx_ru
oh. so something like this

1. Have a template (jmustache/handlebar) for each vhost
2. Make changes to it and generate final files
3. Reload

Thats it?
источник

AR

Ayyappa R in nginx_ru
Can you please pass me the link? I'm unable to find it. All i see is paid version.
источник

IH

Ihor Horhul in nginx_ru
источник

IH

Ihor Horhul in nginx_ru
Its take too much time to understand how its works
источник

IH

Ihor Horhul in nginx_ru
Just learn Ansible basic
источник

AN

Anton Noginov in nginx_ru
Yep.
But I'd better use just bash heredoc for that.
However, ansible uses jinja2 as template engine, and it's worth that.
источник

AR

Ayyappa R in nginx_ru
oh ok.
источник

AN

Anton Noginov in nginx_ru
I wouldn't recommend awx.
источник

AR

Ayyappa R in nginx_ru
Thanks for sharing Jinja is much cool! I miss a lot of conditionals when using jmustache. I see it here! wow!
источник

IH

Ihor Horhul in nginx_ru
I am too)
источник

AR

Ayyappa R in nginx_ru
Ok, i see template way is the right one for me. Ansible looks huge for our small team. However, I will have a note. Thanks a lot Anton always helpful and rest of the members here too.
источник

OK

Oleg Kalinin in nginx_ru
комрадз, подскажите, плиз, есть такой конфиг:
stream {
   server {
       listen 8429;
       location /targets {
          proxy_pass vmagent;
       }
   }
   upstream vmagent {
          server 192.168.3.51:8429;
          server 192.168.3.52:8429;
   }
}
хочется что бы все что приходит на 8429/targets уходило на 2 хоста что в upstream, но nginx ругается что location directive is not allowed here in /etc/nginx/nginx.conf.
источник

AN

Anton Noginov in nginx_ru
Откуда location в stream?
источник

OK

Oleg Kalinin in nginx_ru
нашел какой то пример в Инетах
источник

AN

Anton Noginov in nginx_ru
Не надо в интернетах, надо в документации.

Так работать не может и не будет.
источник