From 0ef753e171cc2fa0d226249bdf3ee8fc43b75d6e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 24 Jan 2021 15:47:31 +0100 Subject: [PATCH] [skip ci] add variable to set agent distro --- defaults/main.yml | 1 + templates/services/userdata.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 291d1f2..c52c6f7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -47,6 +47,7 @@ droneci_autoscaler_agent_image: "drone/drone-runner-docker:{{ droneci_autoscaler droneci_autoscaler_agent_concurrency: 2 droneci_autoscaler_agent_os: linux droneci_autoscaler_agent_architecture: amd64 +droneci_autoscaler_agent_distro: ubuntu droneci_autoscaler_agent_volumes: [] droneci_autoscaler_agent_package_upgrade: False diff --git a/templates/services/userdata.yml.j2 b/templates/services/userdata.yml.j2 index 91e6d6f..a6b75fb 100644 --- a/templates/services/userdata.yml.j2 +++ b/templates/services/userdata.yml.j2 @@ -13,7 +13,7 @@ bootcmd: apt: sources: docker.list: - source: deb [arch={% if inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm" %}armhf{% elif inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm64" %}arm64{% else %}amd64{% endif %}] https://download.docker.com/linux/ubuntu $RELEASE stable + source: deb [arch={% if inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm" %}armhf{% elif inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm64" %}arm64{% else %}amd64{% endif %}] https://download.docker.com/linux/{{ inst.agent_distro | default(droneci_autoscaler_agent_distro) }} $RELEASE stable keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 packages: