[Spacewalk-list] Building Spacewalk With a DNS AliasforFailover
William H. ten Bensel
WHTENBEN at up.com
Sat Feb 18 03:58:51 UTC 2017
To address some additional questions...
1. How to make the init.d start/stop script dynamic?
rhnconf = "/etc/rhn.conf"
if [[ "$srvr_product" == "spacewalk" ]]; then
spacecname=$(grep "cobbler.host" $rhnconf |awk -F"=" '{print
$2}'|sed 's/^[[:space:]]//g'|tr -d '\n')
elif [[ "$srvr_product" == "proxy" ]]; then
rhn_proxy=$(grep "proxy.rhn_parent" $rhnconf |awk -F"=" '{print
$2}'|sed 's/^[[:space:]]//g'|tr -d '\n')
#Append/change NAMEINGCONCENTION.. This is an append
spacename=$(echo $rhn_proxy |sed
'0,/\./{s/\./\$NAMEINGCONCENTION\./}')
fi
##validate that the spacename is not a server name and is an alias...
2. How to deploy the start/stop script?
RPM, chef, puppet, ansible ... Whatever you have or use..
3. How to start/stop the Spacewalk application with the default services
disabled?
chkconfig --add "MYSERVICE"
chkconfig "MYSERVICE" on
service "MYSERVICE" start/stop
4. What happens if the failover server reboots or if Tier 1/2 support run
service "MYSERVICE" start/stop on failover server.
Nothing... The start/stop script has the logic based on if the
server has the alias name or not.
- Thanks and good luck
**
This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170217/a0783cfe/attachment.htm>
More information about the Spacewalk-list
mailing list