From 693452b4f8ab282567a2c5521fceee761ec3705e Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Tue, 13 Oct 2026 21:37:57 +1100 Subject: [PATCH] Map the binarylane DMZ VPCs in subnet facts (#556) The BinaryLane mail edge DMZ VPCs need environment, region, country and zone facts like every other lab subnet. - map 198.18.30.0/24 to prod/syd2/au/dmz (binarylane syd dmz vpc) - map 198.18.31.0/24 to prod/mel1/au/dmz (binarylane mel dmz vpc) Reviewed-on: https://git.unkin.net/unkin/puppet-prod/pulls/556 Co-authored-by: unkin-agent Co-committed-by: unkin-agent --- modules/libs/lib/facter/subnet_facts.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/libs/lib/facter/subnet_facts.rb b/modules/libs/lib/facter/subnet_facts.rb index 0accee1..b53bed5 100644 --- a/modules/libs/lib/facter/subnet_facts.rb +++ b/modules/libs/lib/facter/subnet_facts.rb @@ -22,7 +22,9 @@ class SubnetAttributes '198.18.26.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, # common node0010 '198.18.27.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, # common node0011 '198.18.28.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, # common node0012 - '198.18.29.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' } # common node0013 + '198.18.29.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, # common node0013 + '198.18.30.0/24' => { environment: 'prod', region: 'syd2', country: 'au', zone: 'dmz' }, # binarylane syd dmz vpc + '198.18.31.0/24' => { environment: 'prod', region: 'mel1', country: 'au', zone: 'dmz' } # binarylane mel dmz vpc }.freeze # Default attributes if no subnet matches, also defined as a constant