move debug to before server and agent flags

This commit is contained in:
ᗪєνιη ᗷυнʟ 2020-09-21 13:44:11 -04:00 committed by GitHub
parent 7ea82ed749
commit 36d44bc1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,9 @@ ExecStartPre=-/sbin/modprobe overlay
{% filter regex_replace('\s+', ' ') %}
{% filter replace('\n', ' ') %}
ExecStart={{ k3s_install_dir }}/k3s
{% if k3s_debug is defined and k3s_debug %}
--debug
{% endif %}
{% if k3s_control_node %}
server
{% if k3s_bind_address is defined %}
@ -119,9 +122,6 @@ ExecStart={{ k3s_install_dir }}/k3s
--server https://{{ k3s_control_node_address }}:{{ k3s_https_port }}
--token {{ k3s_control_token }}
{% endif %}
{% if k3s_debug is defined and k3s_debug %}
--debug
{% endif %}
{% if k3s_resolv_conf is defined and k3s_resolv_conf %}
--resolv-conf {{ k3s_resolv_conf }}
{% endif %}