Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/15252 ips #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions resources/bin/rb_register_url.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,28 @@ fi

sed -i '/data.redborder.cluster/d' /etc/hosts
sed -i '/rbookshelf.s3.redborder.cluster/d' /etc/hosts
[ "x$RBDOMAINIP" != "x" ] && echo "$RBDOMAINIP data.redborder.cluster rbookshelf.s3.redborder.cluster redborder.cluster s3.service erchef.service http2k.service webui.service" >> /etc/hosts

sed -i '/kafka.service/d' /etc/hosts
echo "127.0.0.1 kafka.service zookeeper.service f2k.service logstash.service freeradius.service n2klocd.service rb-ale.service rb-nmsp.service rsyslog.service" >> /etc/hosts

#fi

case $TYPE in
"proxy")
SERVICES_LOCAL="kafka.service zookeeper.service f2k.service logstash.service freeradius.service n2klocd.service rb-ale.service rb-nmsp.service rsyslog.service"
SERVICES_GLOBAL="data.redborder.cluster rbookshelf.s3.redborder.cluster redborder.cluster s3.service erchef.service http2k.service webui.service"
;;
"ips")
SERVICES_LOCAL="zookeeper.service f2k.service logstash.service freeradius.service n2klocd.service rb-ale.service rb-nmsp.service rsyslog.service"
SERVICES_GLOBAL="data.redborder.cluster rbookshelf.s3.redborder.cluster redborder.cluster s3.service erchef.service http2k.service webui.service kafka.service"
;;
*)
echo "Unknown type: $TYPE"
exit 1
;;
esac

[ "x$RBDOMAINIP" != "x" ] && echo "$RBDOMAINIP $SERVICES_GLOBAL" >> /etc/hosts
echo "127.0.0.1 $SERVICES_LOCAL" >> /etc/hosts

if [ $START -eq 1 ]; then
if [ -f /etc/chef/client.pem ]; then
systemctl status chef-client &>/dev/null
Expand Down