[skip ci] add runcmd option

This commit is contained in:
Robert Kaussow 2021-02-25 11:20:27 +01:00
parent dd0d55ac75
commit d6a9c65500
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,7 @@ droneci_autoscaler_agent_distro: ubuntu
droneci_autoscaler_agent_volumes: []
droneci_autoscaler_agent_package_upgrade: False
droneci_autoscaler_agent_resolved_dns: []
droneci_autoscaler_agent_runcmd: []
# @var droneci_autoscaler_agent_packages:description: >
# Install extra required packages during agents bootstrapping.

View File

@ -81,3 +81,10 @@ write_files:
[Resolve]
DNS={{ droneci_autoscaler_agent_resolved_dns | join(" ") }}
{% endif %}
{% if droneci_autoscaler_agent_runcmd | lenght > 0 %}
runcmd:
{% for cmd in droneci_autoscaler_agent_runcmd %}
- {{ item }}
{% endfor %}
{% endif %}