Skip to content

Commit

Permalink
scope haproxy @@firewall resource by datacenter
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Nov 5, 2024
1 parent 52341d7 commit aee89ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/profile/haproxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
source => $::ipaddress,
state => 'NEW',
jump => 'accept',
tag => 'haproxy'
tag => "${::datacenter}_haproxy"
}

@@firewall { "200 HTTP firewall6: HAProxy ${::hostname}":
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/profile/haproxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aee89ce

Please sign in to comment.