-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖 Add alpine wifi cloud-config (#2819)
- Loading branch information
1 parent
5bf3a1c
commit 13112ff
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#cloud-config | ||
|
||
hostname: metal-{{ trunc 4 .MachineID }} | ||
users: | ||
- name: kairos | ||
# Change to your pass here | ||
passwd: kairos | ||
ssh_authorized_keys: | ||
# Replace with your github user and un-comment the line below: | ||
# - github:mudler | ||
|
||
stages: | ||
initramfs: | ||
- name: Setup wireless | ||
files: | ||
# Generate manually by following https://wiki.archlinux.org/title/ConnMan and add contents below | ||
- path: /var/lib/connman/wifi_xxxxxxxxxxxx_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_managed_psk/settings | ||
permissions: 0600 | ||
content: | | ||
[wifi_xxxxxxxxxxxx_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_managed_psk] | ||
Name=Your_SSID | ||
...etc... | ||
boot: | ||
- name: Enable wireless | ||
commands: | ||
- connmanctl enable wifi |