Last active
November 30, 2021 21:57
-
-
Save mrchypark/d9e80d01937d2281a11e0c5095f1f116 to your computer and use it in GitHub Desktop.
default cloud-config for azure devops self hosted agent using azure vmss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use ubuntu 20 lts for base image