Skip to content

Instantly share code, notes, and snippets.

@shyshkov
Created June 23, 2022 01:03
Show Gist options
  • Save shyshkov/df0f80f5285f382fe319c6a6f806b65d to your computer and use it in GitHub Desktop.
Save shyshkov/df0f80f5285f382fe319c6a6f806b65d to your computer and use it in GitHub Desktop.
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3j1HFkDozU/Sqm+ngr2t4XbiNZUZcvuIvBn2ZnfRkBXNaZgEIqVLNEiE37HaGspEkSIdpcMBYH+ZrdczazVpJM++aRowJEHF5QpxnijYfYJGcK4jBfrms+4/YUvSgnNEa+0Vm1KFcPHHllP7xp9a2s+X/WkzhYLxuHHtQHV5R3Blc813iTfi9fCSaZHhjHr6XnI2EfQhG6yMGZv/g34e4BO0hAZ5TX1dki9WzYSXCcDt+YmA7G+oaWedNtobMjrNXSEFj758bzVMRcfPaNppp1k2exnhrvi0YbESueq2cvU4UlUH/n069XCzcq4+pwYlKta0DgM/mt4hp7Zy8BTooRs5ESKBt0w4GQyaucUHZZjnQL05cMUO8CmxvLBsSGiFEDY30FefdwYmnjBiSaR3N1cLkrMisTRasVvkoMPE8fCc1P3LLURTmblGPXiXNsbVGl3TfkAniOBuXBMi8FgnZWuKZMx7/4BaGuJ7FYwn8Q0AU0HIwA9KXm3o3p6xFDVs="
hostname: k3os
write_files:
- encoding: ""
content: |-
#!/bin/bash
echo hello, local service start
owner: root
path: /etc/local.d/example.start
permissions: '0755'
init_cmd:
- "echo hello, init command"
boot_cmd:
- "echo hello, boot command"
run_cmd:
- "echo hello, run command"
- 'sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config'
k3os:
modules:
- kvm
dns_nameservers:
- 8.8.8.8
- 1.1.1.1
ntp_servers:
- 0.us.pool.ntp.org
- 1.us.pool.ntp.org
password: rancher
token: "k8stoken"
k3s_args:
- server
- "--cluster-init"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment