#!/bin/bash

echo vca_node_32 > /proc/sys/kernel/hostname
cat > /etc/hosts << EOF
127.0.0.1       localhost.localdomain     localhost
::1             localhost6.localdomain6   localhost6
172.31.12.254   host.local                host
EOF

cat > /etc/ntp.conf << EOF
server 172.31.12.254
EOF

cat > /etc/resolv.conf << EOF
nameserver 172.31.12.254
EOF

systemctl restart ntpd
