/usr/share/tripleo-image-elements/haproxy/install.d/76-haproxy is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash
set -eux
install-packages haproxy
if [ "$DIB_INIT_SYSTEM" == "systemd" ] ; then
systemctl enable haproxy.service
fi
# haproxy service has to be explicitly enabled in /etc/default/haproxy on ubuntu/debian systems
if [ -f /etc/default/haproxy ]; then
sed -i -e 's/ENABLED=0/ENABLED=1/' /etc/default/haproxy
fi
|