Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi: New example #14

Merged
merged 1 commit into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ functionality.
## Examples

- [inject-go-binary](inject-go-binary/): Demos adding building and injecting a Go binary + systemd unit
- [wifi](wifi/): Install support for wireless networks along with pre-baked configuration to join a network
- [tailscale](tailscale/): Demos https://tailscale.com/download/linux/fedora
7 changes: 7 additions & 0 deletions wifi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install wireless support along with a static configuration file.
FROM quay.io/coreos-assembler/fcos:testing-devel
RUN rpm-ostree install NetworkManager-wifi NetworkManager-wwan wpa_supplicant wireless-regdb && \
rpm-ostree cleanup -m && \
ostree container commit
# And also inject a configuration
ADD ExampleCorpWifi.ini /etc/NetworkManager/system-connections/
29 changes: 29 additions & 0 deletions wifi/ExampleCorpWifi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[connection]
id=ExampleCorpWiFi
uuid=6ad20506-0f78-4060-980b-820b7508efba
type=wifi
interface-name=wlp4s0
permissions=

[wifi]
mac-address-blacklist=
mode=infrastructure
ssid=ExampleCorpWiFi

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
# TODO: see https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/106
# We should also have an opinionated story for managing secrets in Ignition + derivation.
psk=examplekeyhere

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

[proxy]