mirror of https://github.com/k3s-io/k3s
contrib/ansible: Add extra_server_args variable
Signed-off-by: Julien DOCHE <julien.doche@gmail.com>pull/1429/head
parent
fd891d0bd9
commit
cddcbe7833
|
@ -2,3 +2,4 @@ k3s_version: v0.8.1
|
||||||
ansible_user: debian
|
ansible_user: debian
|
||||||
systemd_dir: /etc/systemd/system
|
systemd_dir: /etc/systemd/system
|
||||||
master_ip: "{{ hostvars[groups['master'][0]]['ansible_host'] | default(groups['master'][0]) }}"
|
master_ip: "{{ hostvars[groups['master'][0]]['ansible_host'] | default(groups['master'][0]) }}"
|
||||||
|
extra_server_args: ""
|
||||||
|
|
|
@ -5,7 +5,7 @@ After=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/sbin/modprobe br_netfilter
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||||||
ExecStartPre=-/sbin/modprobe overlay
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
ExecStart=/usr/local/bin/k3s server
|
ExecStart=/usr/local/bin/k3s server {{ extra_server_args | default("") }}
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=infinity
|
||||||
|
|
Loading…
Reference in New Issue