make max docker dns server configurable
This commit is contained in:
parent
a75955d479
commit
daad366419
3 changed files with 7 additions and 1 deletions
|
@ -83,6 +83,10 @@ bin_dir: /usr/local/bin
|
||||||
## Please note that overlay2 is only supported on newer kernels
|
## Please note that overlay2 is only supported on newer kernels
|
||||||
#docker_storage_options: -s overlay2
|
#docker_storage_options: -s overlay2
|
||||||
|
|
||||||
|
# Maximum name servers for docker. If your host /etc/resolv.conf contains serval
|
||||||
|
# nameservers, you may need to increase this.
|
||||||
|
#docker_max_dns_servers: 3
|
||||||
|
|
||||||
## Default packages to install within the cluster, f.e:
|
## Default packages to install within the cluster, f.e:
|
||||||
#kpm_packages:
|
#kpm_packages:
|
||||||
# - name: kube-system/grafana
|
# - name: kube-system/grafana
|
||||||
|
|
|
@ -8,3 +8,5 @@ docker_repo_key_info:
|
||||||
|
|
||||||
docker_repo_info:
|
docker_repo_info:
|
||||||
repos:
|
repos:
|
||||||
|
|
||||||
|
docker_max_dns_servers: 3
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
- name: check number of nameservers
|
- name: check number of nameservers
|
||||||
fail:
|
fail:
|
||||||
msg: "Too many nameservers"
|
msg: "Too many nameservers"
|
||||||
when: docker_dns_servers|length > 3
|
when: docker_dns_servers|length > docker_max_dns_servers|int
|
||||||
|
|
||||||
- name: check number of search domains
|
- name: check number of search domains
|
||||||
fail:
|
fail:
|
||||||
|
|
Loading…
Reference in a new issue