Skip to content

Commit

Permalink
templates: NM prepender: ensure /etc/systemd/resolved.conf.d dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs authored and LorbusChris committed Sep 28, 2021
1 parent 7a5d656 commit b271422
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ contents:
>&2 echo "NM resolv-prepender: Setting up systemd-resolved for OKD domain and local IP"
if [[ ! -f /etc/systemd/resolved.conf.d/60-kni.conf ]]; then
>&2 echo "NM resolv-prepender: Creating /etc/systemd/resolved.conf.d/60-kni.conf"
mkdir -p /etc/systemd/resolved.conf.d
echo "[Resolve]" > /etc/systemd/resolved.conf.d/60-kni.conf
echo "DNS=$NAMESERVER_IP" >> /etc/systemd/resolved.conf.d/60-kni.conf
echo "Domains=$DOMAINS" >> /etc/systemd/resolved.conf.d/60-kni.conf
Expand Down

0 comments on commit b271422

Please sign in to comment.