#!/usr/bin/env bash
set -eu
export LC_ALL=C

cat <<EOF
#cloud-config
---
hostname: ${NODE_HOSTNAME}

# Set SSH Key
ssh_authorized_keys:
- ${NODE_PUBLIC_KEY}

network:
  config: disabled

runcmd:
  - [ sh, -c, "echo '${NODE_ADDRESS}  ${NODE_HOSTNAME}' >> /etc/hosts"]

apt:
  sources:
    docker:
      keyid: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
      keyserver: "keyserver.ubuntu.com"
      source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${NODE_OS_CODENAME} stable"

packages:
- docker-ce
- docker-ce-cli
- containerd.io

EOF

#!/usr/bin/env bash
set -eu
export LC_ALL=C

cat <<EOF
#cloud-config
---
hostname: ${NODE_HOSTNAME}

# Set SSH Key
ssh_authorized_keys:
- ${NODE_PUBLIC_KEY}

network:
  config: disabled

runcmd:
  - [ sh, -c, "echo '${NODE_ADDRESS}  ${NODE_HOSTNAME}' >> /etc/hosts"]

apt:
  sources:
    docker:
      keyid: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
      keyserver: "keyserver.ubuntu.com"
      source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${NODE_OS_CODENAME} stable"

packages:
- docker-ce
- docker-ce-cli
- containerd.io
- conntrack

EOF

Add conntrack package to ubuntu
Add conntrack package to ubuntu
