Skip to content

Commit

Permalink
Merge pull request #212 from mmoll/bsd_ifaces
Browse files Browse the repository at this point in the history
set dhcpd_ifaces in rc.conf on FreeBSD
  • Loading branch information
bastelfreak authored Jan 21, 2019
2 parents 46834f3 + 0c1a30a commit 799ba85
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@
content => template('dhcp/redhat/sysconfig-dhcpd'),
}
}
/^(FreeBSD|DragonFly)$/: {
$interfaces_line = join($dhcp_interfaces, ' ')
augeas { 'set listen interfaces':
context => '/files/etc/rc.conf',
changes => "set dhcpd_ifaces '\"${interfaces_line}\"'",
before => Package[$packagename],
notify => $service_notify_real,
}
}
default: { }
}
}
Expand Down

0 comments on commit 799ba85

Please sign in to comment.