Skip to content

Commit e3ecd91

Browse files
committed
fix: account for named,haproxy
Signed-off-by: Paul Bastide <[email protected]>
1 parent 6d0548c commit e3ecd91

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,30 @@ dev-teardown:
113113
dev-cache/kind delete cluster \
114114
--name $(KIND_CLUSTER_NAME)
115115

116+
########################################################################
117+
# Configuration for IBM Development only
118+
119+
.PHONY: dev-config-linux
120+
dev-config-linux: dev-stop-linux-named dev-stop-linux-haproxy
121+
122+
.PHONY: dev-stop-linux-named
123+
dev-stop-linux-named:
124+
ifneq("inactive",$(systemctl is-failed named))
125+
systemctl stop named
126+
end
127+
128+
.PHONY: dev-stop-linux-haproxy
129+
dev-stop-linux-haproxy:
130+
ifneq("inactive",$(systemctl is-failed haproxy))
131+
systemctl stop haproxy
132+
end
133+
134+
.PHONY: dev-config-linux-resolv
135+
dev-config-linux-resolv:
136+
ifeq("", $(grep 10.0.10.4 /etc/resolv.conf))
137+
echo "nameserver 10.0.10.4" >> /etc/resolv.conf
138+
end
139+
116140
########################################################################
117141
# Container Targets
118142

0 commit comments

Comments
 (0)