Commit Graph

10 Commits

Author SHA1 Message Date
d1922dd935 feat: use the config role by default
These are all half-baked roles that just let us opt in or out
different important steps.
2023-04-07 12:58:34 -04:00
b46bf38e84 feat: Configure network-specific packages
This is probably not the right way to do this ... but it's
tricky. Packages that are REQUIRED for proper network config need to
be handled somewhere before we do network config.

Perhaps this could be moved to the netconfig role on its own, but I
don't really want to try.
2022-08-06 22:51:11 -04:00
ad80c3d464 cleanup: separate network config into a role
Note that this also drops the package setup at the beginning of the
original wireless-setup.yml.

We no longer need to specify -e @default_vars.yml since it is included
in the role.
2022-08-06 21:42:30 -04:00
e1fd69bfee feat: packages: allow per-host package conf
We want to be able to assert / de-assert the presence of certain
packages.

Note that the ansible-openwrt role already gives us an opkg cache
refresh.
2022-08-02 00:11:23 -04:00
60ded8e0f7 fix: wifi-iface: apply skip_inactivity_poll and dissasoc_low_ack
I neglected to do this before.

Also, since these conf values now apply everywhere, shift the default
settings for these confs to just vgolan, where they are known-working.
2022-08-01 20:53:45 -04:00
6592260901 feat: wifi_device: Make band vs hwmode configurable
As per openwrt.org[1], the `band` configurable was introduced in
OpenWrt 21.02.2, replacing `hwmode`.

To handle the pre-21.02.2 nodes to which we're deploying, allow us to
configure either of the two (but defaulting hwmode to null).

[1]: https://openwrt.org/docs/guide-user/network/wifi/basic
2022-07-26 15:35:47 -04:00
7cfb5261ab cleanup: Remove ifname if it's still present in network.interface
This was a pre-21.02 thing. We will instead configure a device for the
network.interface to point to.
2022-07-26 12:43:44 -04:00
d265d2d9f7 feat: wifi-iface: Implement mesh_mode variant
- Use empty 'ssid:' in your template when you want it to be removed but
the mesh_id added

- Add an stp network.device option so mesh loops don't break things
2022-07-26 12:42:33 -04:00
c795ef6189 fix: We must set the wifi-iface's mode
... otherwise it won't work. This is usually AP.
2022-07-26 12:41:16 -04:00
c7e9c5f5b9 labb-wifi: initial commit
To set up WiFi:

```sh
ap -D -i inventory.yml wireless-setup.yml -e @default_vars.yml --ask-vault-pass
```
2022-07-25 22:28:57 -04:00