Shell script `default/vultr-package-add-private-ip'

{% if server.distroName == 'CentOS' %} cat <<EOF | sudo tee /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static IPADDR={{ params.ip }} NETMASK=255.255.0.0 IPV6INIT=no MTU=1450 EOF sudo service network restart {% elseif server.distroName == 'Ubuntu' and server.distroVersion > 16 %} cat <<EOF | sudo tee -a /etc/network/interfaces auto ens7 iface ens7 inet static address {{ params.ip }} netmask 255.255.0.0 mtu 1450 EOF sudo ifup ens7 {% endif %}