Document that token is (mostly) optional now
The token is still required when using Vagrant. Signed-off-by: Marko Vukovic <8951449+anon-software@users.noreply.github.com>pull/375/head
parent
123f9c41b5
commit
221ba2f08f
|
@ -28,6 +28,7 @@ def provision(vm, role, node_num)
|
|||
ansible.extra_vars = {
|
||||
k3s_version: "v1.28.14+k3s1",
|
||||
api_endpoint: "#{NETWORK_PREFIX}.100",
|
||||
# Required for vagrant ansible provisioner
|
||||
token: "myvagrant",
|
||||
# Required to use the private network configured above
|
||||
extra_server_args: "--node-external-ip #{node_ip} --flannel-iface eth1",
|
||||
|
|
|
@ -19,6 +19,7 @@ k3s_cluster:
|
|||
# - openssl rand -base64 64
|
||||
# - pwgen -s 64 1
|
||||
# You can use ansible-vault to encrypt this value / keep it secret.
|
||||
# Or you can omit it if not using Vagrant and let the first server automatically generate one.
|
||||
token: "changeme!"
|
||||
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
|
||||
extra_server_args: ""
|
||||
|
|
Loading…
Reference in New Issue