Aliaksandr,
Your solution doesn't work. The whole purpose of having a server behind a Load Balance is so that you have protection in case one server goes down and/or to balance the load. The GLUU service, when on, changes the hostname of the server to whatever is used in the setup.py script. When the hostname changes, it impacts the Puppet install. Puppet resides outside the container.
Please read below for further clarification.
Outside the container, my hostname (HN) is itsssodev2.dcs.uncw.edu with a DNS alias to itsssodev2.uncw.edu. The IP is 152.20.5.139.
The name on the LB is ssodev.uncw.edu with an IP of 152.20.5.136.
Following GLUU's instructions for installing behind a LB, I set the IP to 152.20.5.139 and set the HN to sso.dev.uncw.
Once the install is done and I reboot the server, the GLUU service changes the HN of the server outside of the container to sso.dev.uncw. It doesn't change the hostname entry in the /etc/sysconfig/network file, but the GLUU service somehow changes the command prompt from itsssodev2 to ssodev (inside and outside the container). Outside the container, server becomes ssodev.uncw.edu (again, the file that contains HN entry is not altered). This impacts Puppet b/c it now thinks the hostname is ssodev.uncw.edu (puppet is not inside the GLUU container).
However, what I just found out is that if I turn the GLUU service off and prevent it from coming on during reboot. The hostname stays as it should (itsssodev2.uncw.edu). I start the GLUU service up and set it start on boot, it changes the name back to ssodev.uncw.edu.
Your solution doesn't work b/c the whole purpose of a LB is to have two or more servers behind a LB. Because we use Puppet on our servers to maintain a certain standard, I can't have two servers with the same name.
If this doesn't convey the problem in a way that you understand, can we bring someone else in?
Thanks,
Dan