Page MenuHomeDevCentral

Configure network for FreeBSD servers
ClosedPublic

Authored by dereckson on Oct 22 2017, 18:11.
Tags
None
Referenced Files
F3788651: D1095.diff
Tue, Nov 26, 23:32
Unknown Object (File)
Sun, Nov 24, 13:40
Unknown Object (File)
Wed, Nov 20, 00:07
Unknown Object (File)
Sat, Nov 2, 14:12
Unknown Object (File)
Sat, Nov 2, 14:11
Unknown Object (File)
Tue, Oct 29, 12:42
Unknown Object (File)
Tue, Oct 29, 12:24
Unknown Object (File)
Oct 26 2024, 00:41
Subscribers
None

Details

Summary

This change offers a standard set of network definitions
for the pillar's nodes dictionary.

To allow several states to edit netif, use a folder instead
of a file (/etc/rc.conf.d/netif/jails, /etc/rc.conf.d/netif/…).

To parse the nodes dictionary, provide a node execution module.

Test Plan

Tested on Ysul where it creates correct files.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
ysul-network
Build Status
Buildable 1727
Build 1975: arc lint + arc unit

Event Timeline

Ysul result

/etc/rc.conf.d/routing
defaultrouter="163.172.49.1"
/etc/rc.conf.d/ipv4_igb0
?️
ifconfig_igb0="inet 163.172.49.16 netmask 255.255.255.0"
?️
?️
ifconfig_igb0_alias0="inet 213.83.187.132 netmask 255.255.255.255"
?️

(Headers have been stripped, extra whitelines added by the template logic are identified by ?️)

This revision is now accepted and ready to land.Oct 22 2017, 18:17
This revision was automatically updated to reflect the committed changes.