Skip to content

Commit

Permalink
cmsd config for xrootd
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Nov 25, 2024
1 parent 3562f89 commit 2913e98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions manifests/xrootd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
String $export = '/',
String $interface = 'ens3',
String $xrootd_port = '1094',
String $xrootd_admin_path = '/var/spool/xrootd',
)
{

Expand Down
2 changes: 2 additions & 0 deletions templates/xrootd/docker-compose.erb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
hostname: <%= @hostname %>
volumes:
- /opt/xrootd/config:/etc/xrootd:ro
- /opt/xrootd/admin:<%= @xrootd_admin_path %>:rw
- /dev/log:/dev/log
command: ["xrootd", "-c", "/etc/xrootd/xrootd.cfg"]
ports:
Expand All @@ -18,6 +19,7 @@ services:
hostname: <%= @hostname %>
volumes:
- /opt/xrootd/config:/etc/xrootd:ro
- /opt/xrootd/admin:<%= @xrootd_admin_path %>:rw
- /dev/log:/dev/log
command: ["cmsd", "-c", "/etc/xrootd/xrootd.cfg", "-p", "<%= @cms_port %>"]
ports:
Expand Down
6 changes: 4 additions & 2 deletions templates/xrootd/xrootd.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ xrootd.async off

# Tell everyone the location of each manager.
# Set the role to either proxy manager or proxy server
all.adminpath <%= @xrootd_admin_path %>
<% @managers.each do |manager| -%>
all.manager <%= manager %>
all.role = proxy manager if <%= manager %>
all.role manager if <%= manager %>
<% end -%>
all.role = proxy server
all.role server

# Tell the cmsd which machines are allowed to connects
<% @cms_allow_hosts.each do |host| -%>
cms.allow host <%= host %>
<% end -%>
cms.dfs limit 0 lookup distrib mdhold 0 redirect verify retries 2

# Bucket specific s3 options
<% if @xrootd_buckets.is_a? Array and @xrootd_buckets.size > 0 -%>
Expand Down

0 comments on commit 2913e98

Please sign in to comment.