G
G
gremlintv22018-12-06 10:32:52
Chef
gremlintv2, 2018-12-06 10:32:52

What configuration management system should I choose to change nginx configs?

Hello gentlemen DevOps,
Unfortunately, I approach the implementation of the task after the fact and have a superficial understanding of configuration management systems. Since I used shell scripts before, I looked askance towards control systems and that was enough, until now).
What would you advise a beginner to solve the following problem:
Everything is pretty banal.
It is necessary to replace the nginx config on three proxy servers with the change of the current ip (proxy server) in the server block, /etc/nginx/nginx.conf
file :

server {
listen {{ ip }}:80;
server_name example.com;
root “/var/www”
}

Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-12-06
@gremlintv2

In template
listen {{ ansible_default_ipv4.address }}:80;

P
Puma Thailand, 2018-12-06
@opium

Ansible is probably the most popular now, so it’s necessary on it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question