fix: use scaler resolved dns for docker daemon
This commit is contained in:
parent
c390dd82cf
commit
2b613ce0f8
@ -50,7 +50,7 @@ droneci_autoscaler_agent_architecture: amd64
|
||||
droneci_autoscaler_agent_distro: ubuntu
|
||||
droneci_autoscaler_agent_volumes: []
|
||||
droneci_autoscaler_agent_package_upgrade: False
|
||||
droneci_autoscaler_agent_resolved_dns: []
|
||||
droneci_autoscaler_agent_dns: []
|
||||
droneci_autoscaler_agent_runcmd: []
|
||||
|
||||
# @var droneci_autoscaler_agent_packages:description: >
|
||||
|
@ -48,7 +48,8 @@ write_files:
|
||||
"tlsverify": true,
|
||||
"tlscacert": "/etc/docker/ca.pem",
|
||||
"tlscert": "/etc/docker/server-cert.pem",
|
||||
"tlskey": "/etc/docker/server-key.pem"
|
||||
"tlskey": "/etc/docker/server-key.pem",
|
||||
"dns": {{ droneci_autoscaler_agent_dns | to_json }}
|
||||
}
|
||||
{% if inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) is defined %}
|
||||
|
||||
@ -74,12 +75,12 @@ write_files:
|
||||
- path: /etc/docker/server-key.pem
|
||||
encoding: b64
|
||||
content: {% raw %}{{ .TLSKey | base64 }}{% endraw %}
|
||||
{% if droneci_autoscaler_agent_resolved_dns | length > 0 %}
|
||||
{% if droneci_autoscaler_agent_dns | length > 0 %}
|
||||
|
||||
- path: /etc/systemd/resolved.conf
|
||||
content: |
|
||||
[Resolve]
|
||||
DNS={{ droneci_autoscaler_agent_resolved_dns | join(" ") }}
|
||||
DNS={{ droneci_autoscaler_agent_dns | join(" ") }}
|
||||
{% endif %}
|
||||
{% if droneci_autoscaler_agent_runcmd | length > 0 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user