Merge pull request #1429 from St0rmingBr4in/inventory-subdirectory

contrib/ansible: Move example inventory into subdirectory and add extra_server_args
This commit is contained in:
Erik Wilson 2020-02-24 15:21:32 -07:00 committed by GitHub
commit 742571e6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ node
Start provisioning of the cluster using the following command:
```
ansible-playbook site.yml
ansible-playbook site.yml -i inventory/hosts.ini
```
## Kubeconfig

View File

@ -2,3 +2,4 @@ k3s_version: v0.8.1
ansible_user: debian
systemd_dir: /etc/systemd/system
master_ip: "{{ hostvars[groups['master'][0]]['ansible_host'] | default(groups['master'][0]) }}"
extra_server_args: ""

View File

@ -5,7 +5,7 @@ After=network-online.target
[Service]
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
ExecStart=/usr/local/bin/k3s server {{ extra_server_args | default("") }}
KillMode=process
Delegate=yes
LimitNOFILE=infinity