Skip to content

Commit

Permalink
Document that token is (mostly) optional now
Browse files Browse the repository at this point in the history
The token is still required when using Vagrant.

Signed-off-by: Marko Vukovic <[email protected]>
  • Loading branch information
anon-software committed Nov 11, 2024
1 parent 123f9c4 commit 221ba2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions inventory-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down

0 comments on commit 221ba2f

Please sign in to comment.