Skip to content

Commit

Permalink
XrootD: Get rid of manager domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Nov 28, 2024
1 parent 2af4120 commit 55fab88
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion manifests/xrootd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
class sunet::xrootd(
Array[Hash] $cms_allow_hosts,
Array $managers,
String $manager_domain,
String $cms_port = '1213',
String $container_image = 'docker.sunet.se/staas/xrootd-s3-http',
String $container_tag = '0.17.0-1',
Expand Down
4 changes: 0 additions & 4 deletions templates/xrootd/docker-compose.erb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ services:
- "<%= extra_host['name'] %>:<%= extra_host['ipv4'] %>"
- "<%= extra_host['name'] %>:<%= extra_host['ipv6'] %>"
<%- if @managers.include?(extra_host['name']) -%>
- "<%= @manager_domain %>:<%= extra_host['ipv4'] %>"
- "<%= @manager_domain %>:<%= extra_host['ipv6'] %>"
- "<%= extra_host['name'].split('.')[0] %>:<%= extra_host['ipv4'] %>"
- "<%= extra_host['name'].split('.')[0] %>:<%= extra_host['ipv6'] %>"
<%- end -%>
Expand All @@ -33,8 +31,6 @@ services:
- "<%= extra_host['name'] %>:<%= extra_host['ipv4'] %>"
- "<%= extra_host['name'] %>:<%= extra_host['ipv6'] %>"
<%- if @managers.include?(extra_host['name']) -%>
- "<%= @manager_domain %>:<%= extra_host['ipv4'] %>"
- "<%= @manager_domain %>:<%= extra_host['ipv6'] %>"
- "<%= extra_host['name'].split('.')[0] %>:<%= extra_host['ipv4'] %>"
- "<%= extra_host['name'].split('.')[0] %>:<%= extra_host['ipv6'] %>"
<%- end -%>
Expand Down
1 change: 1 addition & 0 deletions templates/xrootd/xrootd-manager.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ all.pidpath <%= @xrootd_admin_path %>
<%- @cms_allow_hosts.each do |extra_host| -%>
<%- if @managers.include?(extra_host['name']) -%>
all.manager all <%= extra_host['name'].split('.')[0] %> <%= @xrootd_port %>
all.manager all <%= extra_host['name'] %> <%= @xrootd_port %>
<%- end -%>
<%- end -%>
all.role manager
Expand Down
1 change: 1 addition & 0 deletions templates/xrootd/xrootd-server.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ all.pidpath <%= @xrootd_admin_path %>
<%- @cms_allow_hosts.each do |extra_host| -%>
<%- if @managers.include?(extra_host['name']) -%>
all.manager all <%= extra_host['name'].split('.')[0] %> <%= @xrootd_port %>
all.manager all <%= extra_host['name'] %> <%= @xrootd_port %>
<%- end -%>
<%- end -%>
all.role server
Expand Down

0 comments on commit 55fab88

Please sign in to comment.