Skip to content

Commit

Permalink
XrootD: readd manager_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Nov 28, 2024
1 parent 55fab88 commit 09638a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions manifests/xrootd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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
7 changes: 1 addition & 6 deletions templates/xrootd/xrootd-manager.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ all.export <%= @export %>
# Set the role to either proxy manager or proxy server
all.adminpath <%= @xrootd_admin_path %>
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.manager all <%= @manager_domain %>+ <%= @xrootd_port %>
all.role manager

# Tell the cmsd which machines are allowed to connects
Expand Down
7 changes: 1 addition & 6 deletions templates/xrootd/xrootd-server.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ all.export <%= @export %>
# Set the role to either proxy manager or proxy server
all.adminpath <%= @xrootd_admin_path %>
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.manager all <%= @manager_domain %>+ <%= @xrootd_port %>
all.role server

# Tell the cmsd which machines are allowed to connects
Expand Down

0 comments on commit 09638a8

Please sign in to comment.