Skip to content

Commit

Permalink
Merge pull request #14 from cgwalters/wireless
Browse files Browse the repository at this point in the history
wifi: New example
  • Loading branch information
cgwalters committed May 4, 2022
2 parents 6c5aa2c + 733a263 commit b4df701
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ 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
- [butane](butane/): Demos using https://github.com/coreos/butane

Expand Down
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]

0 comments on commit b4df701

Please sign in to comment.