Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
acrn committed Dec 3, 2024
2 parents 2969d04 + 1267dbe commit fa2994c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions manifests/xrootd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
}
file { '/opt/xrootd/config':
ensure => directory,
owner => '100',
group => '101',
}
file { '/opt/xrootd/admin':
ensure => directory,
Expand Down
1 change: 1 addition & 0 deletions templates/forgejo/app.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ EMAIL_DOMAIN_ALLOWLIST = <%= @email_domain_whitelist %>
ALLOW_ONLY_EXTERNAL_REGISTRATION = true
SHOW_REGISTRATION_BUTTON = false
ENABLE_NOTIFY_MAIL = true
AUTO_WATCH_NEW_REPOS = false

[CORS]
ALLOW_DOMAIN = sunet.se
Expand Down
4 changes: 2 additions & 2 deletions templates/xrootd/docker-compose.erb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: <%= @container_image %>:<%= @container_tag %>
dns:
- 89.32.32.32
hostname: <%= @hostname.split('.')[0] %>
hostname: <%= @hostname %>
network_mode: host
extra_hosts:
<%- @cms_allow_hosts.each do |extra_host| -%>
Expand All @@ -26,7 +26,7 @@ services:
image: <%= @container_image %>:<%= @container_tag %>
dns:
- 89.32.32.32
hostname: <%= @hostname.split('.')[0] %>
hostname: <%= @hostname %>
network_mode: host
extra_hosts:
<%- @cms_allow_hosts.each do |extra_host| -%>
Expand Down
6 changes: 3 additions & 3 deletions templates/xrootd/xrootd-manager.cfg.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Enable the HTTP protocol on port <%= @port %> (1094 is the default XRootD port)
xrd.protocol http:<%= @xrootd_port %> libXrdHttp.so
if exec cmsd
xrd.port <%= @cms_port %>
fi
if exec xrootd
xrd.port <%= @xrootd_port %>
xrd.protocol http:<%= @xrootd_port %> libXrdHttp.so
xrd.port <%= @xrootd_port %>
fi

# Upon last testing, the plugin did not yet work in async mode
Expand All @@ -17,7 +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 %>
all.manager all <%= @manager_domain %>+ <%= @xrootd_port %>
all.manager all <%= @manager_domain %>+ <%= @cms_port %>
all.role manager

# Tell the cmsd which machines are allowed to connects
Expand Down
6 changes: 3 additions & 3 deletions templates/xrootd/xrootd-server.cfg.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Enable the HTTP protocol on port <%= @port %> (1094 is the default XRootD port)
xrd.protocol http:<%= @xrootd_port %> libXrdHttp.so
if exec cmsd
xrd.port <%= @cms_port %>
fi
if exec xrootd
xrd.port <%= @xrootd_port %>
xrd.protocol http:<%= @xrootd_port %> libXrdHttp.so
xrd.port <%= @xrootd_port %>
fi

# Upon last testing, the plugin did not yet work in async mode
Expand All @@ -17,7 +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 %>
all.manager all <%= @manager_domain %>+ <%= @xrootd_port %>
all.manager all <%= @manager_domain %>+ <%= @cms_port %>
all.role server

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

0 comments on commit fa2994c

Please sign in to comment.