add option to overwrite systemd-resolved
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-02-25 10:47:55 +01:00
parent 3af6d55088
commit 0e46a396ed
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 8 additions and 0 deletions

View File

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

View File

@ -74,3 +74,10 @@ write_files:
- path: /etc/docker/server-key.pem - path: /etc/docker/server-key.pem
encoding: b64 encoding: b64
content: {% raw %}{{ .TLSKey | base64 }}{% endraw %} content: {% raw %}{{ .TLSKey | base64 }}{% endraw %}
{% if droneci_autoscaler_agent_resolved_dns | length > 0 %}
- path: /etc/systemd/resolved.conf
content: |
[Resolve]
DNS={{ droneci_autoscaler_resolved_dns | join(" ") }}
{% endif %}