Ansible role for configuring network on OpenBSD
Go to file
Oleg Vasilev 6bbdbe7cf9 First working release 2021-09-12 00:26:15 +03:00
handlers First working release 2021-09-12 00:26:15 +03:00
tasks First working release 2021-09-12 00:26:15 +03:00
templates First working release 2021-09-12 00:26:15 +03:00
CHANGELOG.md First working release 2021-09-12 00:26:15 +03:00
README.md First working release 2021-09-12 00:26:15 +03:00

README.md

OpenBSD network

An Ansible role for configuring network on OpenBSD.

This project adheres to Semantic Versioning.

Requirements

An installed OpenBSD system with python in it.

Role Variables

Example configuration. Follow OpenBSD documentation to construct yours.

# This is how typical router configuration looks like
openbsd_network_interfaces:
  em0: ["dhcp"]
  em1: ["up"]
  em2: ["up"]
  em3: ["up"]
  em4: ["up"]
  vether0: ["inet 192.168.0.1 255.255.255.0"]
  bridge0:
    - add vether0
    - add em1
    - add em2
    - add em3
    - add em4
    - up

TODO:

What to do on configuration changes. Could be "restart", "reload" or "nothing". Variable is mandatory.

networkd_apply_action: "restart"

License

MIT