blob: 0dd3d933b92c9172dffb50e7bd00b01fdea927b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
set -e
set -x
if [[ "${CLOUD_INIT}" != "vyos" ]]; then
echo "$0 - info: cloud_init not vyos, skipping"
exit 0
fi
export DEBIAN_FRONTEND=noninteractive
apt purge -y \
cloud-init \
cloud-utils \
ifupdown
apt install -t "$VYOS_RELEASE" --force-yes -y \
cloud-init \
cloud-utils \
ifupdown
systemctl enable cloud-init
cat <<EOF > /etc/cloud/cloud.cfg.d/90_disable_config_stage.cfg
# Disable all config-stage modules
cloud_config_modules:
EOF
|