Skip to content

Commit

Permalink
(foreman/cp role) add DHCP pool for startracker|vlan1601
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Nov 9, 2022
1 parent 78f95ab commit 65289f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hieradata/site/cp/role/foreman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ dhcp::pools:
range:
- "139.229.168.243 139.229.168.249"
search_domains: "%{alias('dhcp::dnsdomain')}"
Startracker:
network: "139.229.169.0"
mask: "255.255.255.0"
gateway: "139.229.169.254"
range:
- "139.229.169.200 139.229.169.249"
search_domains: "%{alias('dhcp::dnsdomain')}"
mtu: 9000
DDS-Auxtel:
network: "139.229.170.0"
mask: "255.255.255.0"
Expand Down
10 changes: 10 additions & 0 deletions spec/hosts/roles/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,16 @@
)
end

it do
is_expected.to contain_dhcp__pool('Startracker').with(
network: '139.229.169.0',
mask: '255.255.255.0',
range: ['139.229.169.200 139.229.169.249'],
gateway: '139.229.169.254',
mtu: 9000,
)
end

it do
is_expected.to contain_dhcp__pool('DDS-Auxtel').with(
network: '139.229.170.0',
Expand Down

0 comments on commit 65289f3

Please sign in to comment.