Skip to content

Instantly share code, notes, and snippets.

@mrchypark
Last active November 30, 2021 21:57
Show Gist options
  • Select an option

  • Save mrchypark/d9e80d01937d2281a11e0c5095f1f116 to your computer and use it in GitHub Desktop.

Select an option

Save mrchypark/d9e80d01937d2281a11e0c5095f1f116 to your computer and use it in GitHub Desktop.
default cloud-config for azure devops self hosted agent using azure vmss
#cloud-config
bootcmd:
- mkdir -p /etc/systemd/system/walinuxagent.service.d
- echo "[Unit]\nAfter=cloud-final.service" > /etc/systemd/system/walinuxagent.service.d/override.conf
- sed "s/After=multi-user.target//g" /lib/systemd/system/cloud-final.service > /etc/systemd/system/cloud-final.service
- systemctl daemon-reload
apt:
sources:
docker.list:
source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
packages:
- unzip
- docker-ce
- docker-ce-cli
groups:
- docker
disk_setup:
ephemeral0:
table_type: gpt
layout: [66, [33,82]]
overwrite: true
fs_setup:
- device: ephemeral0.1
filesystem: ext4
mounts:
- ["ephemeral0.1", "/agent"]
@mrchypark

Copy link
Copy Markdown
Author

use ubuntu 20 lts for base image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment