Skip to content

Commit d2654ca

Browse files
committed
(profile::core::rucio) update rucio profile
1 parent 0ead70e commit d2654ca

File tree

1 file changed

+29
-54
lines changed

1 file changed

+29
-54
lines changed
Lines changed: 29 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,38 @@
11
# @summary
22
# Install required rucio packages
33
#
4-
class profile::core::rucio () {
5-
include profile::core::letsencrypt
6-
7-
# Host FQDN
8-
$fqdn = fact('networking.fqdn')
9-
10-
# Define XRootD Path
11-
$xrootd_path = '/opt/xrootd'
12-
13-
# Define Yum Packages
14-
$yum_packages = [
15-
'gcc-c++',
16-
'cmake3',
17-
'krb5-devel',
18-
'libuuid-devel',
19-
'libxml2-devel',
20-
'openssl-devel',
21-
'systemd-devel',
22-
'zlib-devel',
23-
'devtoolset-7',
24-
'xrootd',
25-
'voms',
26-
]
27-
28-
# Define PIP Packages
29-
$pip_packages = [
30-
'wheel',
31-
'cryptography',
32-
'rucio',
33-
]
34-
35-
# Signed Certificate Location
36-
$le_root = "/etc/letsencrypt/live/${fqdn}"
37-
38-
# Generate and sign certificate
39-
letsencrypt::certonly { $fqdn:
40-
plugin => 'dns-route53',
41-
manage_cron => true,
4+
class profile::core::rucio {
5+
yumrepo { 'xrootd-stable':
6+
descr => 'XRootD Stable Repository',
7+
baseurl => 'https://xrootd.web.cern.ch/repo/stable/el$releasever/$basearch',
8+
skip_if_unavailable => 'true',
9+
gpgcheck => '1',
10+
gpgkey => 'https://xrootd.web.cern.ch/repo/RPM-GPG-KEY.txt',
11+
enabled => '1',
12+
target => '/etc/yum.repo.d/xrootd.repo',
4213
}
43-
44-
# Copy the certificates into /etc/grid-security
45-
-> cron::monthly { 'update_cert':
46-
command => "/bin/rsync -a --copy-links --chown=xrootd:xrootd ${le_root}/cert.pem ${le_root}/chain.pem ${le_root}/fullchain.pem ${le_root}/privkey.pem /etc/grid-security/ /dev/null 2>&1",
47-
user => 'root',
48-
hour => 0,
49-
minute => 0,
50-
date => 1,
14+
-> package { 'xrootd':
15+
ensure => 'installed',
5116
}
52-
53-
# Install Pip3 Packages
54-
package { $pip_packages:
55-
ensure => 'present',
56-
provider => 'pip3',
17+
file { [
18+
'/lib/systemd/system/[email protected]',
19+
'/lib/systemd/system/[email protected]',
20+
]:
21+
ensure => file,
22+
mode => '0644',
23+
owner => 'saluser',
24+
group => 'saluser',
5725
}
5826

59-
# Install Yum Packages
60-
package { $yum_packages:
61-
ensure => 'present',
27+
file { [
28+
'/etc/xrootd',
29+
'/var/log/xrootd',
30+
'/var/run/xrootd',
31+
'/var/spool/xrootd',
32+
]:
33+
ensure => directory,
34+
mode => '0644',
35+
owner => 'saluser',
36+
group => 'saluser',
6237
}
6338
}

0 commit comments

Comments
 (0)