summaryrefslogtreecommitdiff
path: root/scripts/vyos/cloud-init-debian.sh
blob: 2cf398f0bd36c56e5903b9a519c1e2a0fca1546c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -e
set -x

if [[ "${CLOUD_INIT}" != "debian" ]]; then
    echo "$0 - info: cloud_init not debian, skipping"
    exit 0
fi

export DEBIAN_FRONTEND=noninteractive

apt purge -y \
    cloud-init \
    cloud-utils \
    ifupdown

apt install -y \
    cloud-init \
    cloud-utils \
    ifupdown
    
systemctl enable cloud-init