From a2c1d8ca2cc2d67e91f269c712781ae93d6903b0 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Mon, 11 Apr 2016 10:08:43 -0400 Subject: [PATCH] Fix configuration string for haproxy Use user and group configuration option, uid and gid need a number instead of a name. Specifying a name for uid/gid attributes will make haproxy run under the root user. Change-Id: I1d6db661b7d0958e1ba888770e3ce789d7cb4a76 --- playbooks/roles/haproxy_server/templates/haproxy.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/haproxy_server/templates/haproxy.cfg.j2 b/playbooks/roles/haproxy_server/templates/haproxy.cfg.j2 index 9d9c093a02..51727671d0 100644 --- a/playbooks/roles/haproxy_server/templates/haproxy.cfg.j2 +++ b/playbooks/roles/haproxy_server/templates/haproxy.cfg.j2 @@ -4,8 +4,8 @@ global log 127.0.0.1 local0 log 127.0.0.1 local1 notice chroot /var/lib/haproxy - uid haproxy - gid haproxy + user haproxy + group haproxy daemon maxconn 4096 tune.bufsize 384000