by rsyracuse
17 deployments · 24 still active · last rev. 3 months ago

Designed to work with Pulumi to install nginx during initial Linode creation

Compatible with: Debian 9
# <UDF name="hostname" Label="Hostname" example="example hostname" />

# add sudo user
apt-get update && apt-get upgrade 
hostnamectl set-hostname $HOSTNAME
echo "   $HOSTNAME" >> /etc/hosts  
apt-get install nginx -y
sudo systemctl enable nginx