Page MenuHomeDevCentral

Configure network for FreeBSD servers
ClosedPublic

Authored by dereckson on Oct 22 2017, 18:11.
Tags
None
Referenced Files
F9988026: D1095.diff
Tue, Jun 17, 07:42
F9971821: D1095.id.diff
Tue, Jun 17, 02:24
Unknown Object (File)
Sat, Jun 14, 10:08
Unknown Object (File)
Fri, Jun 13, 18:23
Unknown Object (File)
Fri, Jun 6, 00:27
Unknown Object (File)
Thu, Jun 5, 06:07
Unknown Object (File)
Tue, Jun 3, 08:31
Unknown Object (File)
Tue, Jun 3, 00:12
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.