From 5f90f9bdff3ef9d73a024d12eec5219436f87b15 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sat, 3 Oct 2026 20:37:47 +1000 Subject: [PATCH] Add 198.18.2.0/24 router loopback subnet --- hieradata/roles/infra/puppet/master.yaml | 1 + modules/libs/lib/facter/subnet_facts.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/hieradata/roles/infra/puppet/master.yaml b/hieradata/roles/infra/puppet/master.yaml index a856556..f3182c1 100644 --- a/hieradata/roles/infra/puppet/master.yaml +++ b/hieradata/roles/infra/puppet/master.yaml @@ -1,5 +1,6 @@ --- profiles::puppet::autosign::subnet_ranges: + - '198.18.2.0/24' - '198.18.13.0/24' - '198.18.14.0/24' - '198.18.15.0/24' diff --git a/modules/libs/lib/facter/subnet_facts.rb b/modules/libs/lib/facter/subnet_facts.rb index a0ed78a..0accee1 100644 --- a/modules/libs/lib/facter/subnet_facts.rb +++ b/modules/libs/lib/facter/subnet_facts.rb @@ -5,6 +5,7 @@ require 'ipaddr' # a class that creates facts based on the subnet class SubnetAttributes SUBNET_TO_ATTRIBUTES = { + '198.18.2.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, # router loopbacks '198.18.13.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, '198.18.14.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' }, '198.18.15.0/24' => { environment: 'prod', region: 'syd1', country: 'au', zone: 'common' },