From aee89ce2c3c0ab13412e2e069b115994f1d4bc3b Mon Sep 17 00:00:00 2001 From: Ryan Rotter Date: Tue, 5 Nov 2024 17:22:08 -0500 Subject: [PATCH] scope haproxy `@@firewall` resource by datacenter --- manifests/profile/haproxy.pp | 2 +- spec/classes/profile/haproxy_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/profile/haproxy.pp b/manifests/profile/haproxy.pp index df6c28810..3277bd40f 100644 --- a/manifests/profile/haproxy.pp +++ b/manifests/profile/haproxy.pp @@ -136,7 +136,7 @@ source => $::ipaddress, state => 'NEW', jump => 'accept', - tag => 'haproxy' + tag => "${::datacenter}_haproxy" } @@firewall { "200 HTTP firewall6: HAProxy ${::hostname}": diff --git a/spec/classes/profile/haproxy_spec.rb b/spec/classes/profile/haproxy_spec.rb index 1637caa9e..c02a0c1e6 100644 --- a/spec/classes/profile/haproxy_spec.rb +++ b/spec/classes/profile/haproxy_spec.rb @@ -306,7 +306,7 @@ it 'exports a firewall resource tagged haproxy' do expect(exported_resources).to contain_firewall('200 HTTP: HAProxy thisnode').with( source: my_ip, - tag: 'haproxy', + tag: 'somedc_haproxy', ) end