Skip to content

Commit

Permalink
fix: 99-worker-dnsconfig uses updated butane v0.19.0 and butane defin…
Browse files Browse the repository at this point in the history
…ition

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Oct 25, 2023
1 parent 5f5457f commit 13aa885
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions modules/4_pvs_support/files/resolv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,28 @@ VAL=$(oc get mc -o yaml | grep -c 99-worker-dnsconfig)
if [ ${VAL} -eq 0 ]
then

dnf install -y butane
curl -L -o butane https://github.com/coreos/butane/releases/download/v0.19.0/butane-ppc64le-unknown-linux-gnu

cat << EOF > butane-resolv-conf.bu
variant: openshift
version: 4.12.0
version: 4.14.0
metadata:
name: 99-worker-dnsconfig
labels:
name: 99-worker-dnsconfig
labels:
machineconfiguration.openshift.io/role: worker
storage:
files:
files:
- path: /etc/resolv.conf
mode: 0644
overwrite: true
contents:
overwrite: true
mode: 0644
contents:
inline: |
search $(hostname --long)
nameserver $(hostname -i | awk '{print $NF}')
search $(hostname --long)
nameserver $(hostname -i | awk '{print $NF}')
EOF

butane butane-resolv-conf.bu > 99-worker-dnsconfig.yaml
chmod +x butane
./butane butane-resolv-conf.bu > 99-worker-dnsconfig.yaml
cat 99-worker-dnsconfig.yaml

oc apply -f 99-worker-dnsconfig.yaml
Expand Down

0 comments on commit 13aa885

Please sign in to comment.