Skip to content
Snippets Groups Projects
Commit 1a9b57d1 authored by p.n.kramp's avatar p.n.kramp
Browse files

Modified to fit GSI hypervisor setup

parent bec769a9
No related branches found
No related tags found
No related merge requests found
http_proxy: 172.16.0.100:8080 http_proxy: lxproxy01.gsi.de
http_port: 8080
xrootd_interface: http #http or xrootd xrootd_interface: http #http or xrootd
xrootd_port: 80 # This is the same always. It's a bug xrootd_port: 80 # This is the same always. It's a bug
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
- common - common
- hosts: proxies - hosts: proxies
user: centos user: root
sudo: true sudo: true
vars_files: vars_files:
- credentials.yml - credentials.yml
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- proxy - proxy
- hosts: dynafed - hosts: dynafed
user: centos user: root
vars: vars:
endpoints: "{{ lookup('file','dynafedInstances.json')|from_json }}" endpoints: "{{ lookup('file','dynafedInstances.json')|from_json }}"
sudo: true sudo: true
......
# XRootD HTTP Server # Datalake Local Access Point Setup
## Description
A Vagrant XRootD setup utilising the following protocol option
```xrd.protocol http:80 /usr/lib/alice-xrootd/libXrdHttp.so
```
to expose internal files via http, right now only the data server can expose its files.
Internally it uses Ansible to provision the vagrant virtual machines
##Usage
-git clone https://git.gsi.de/dc/XRootD-Reps/xrootd-disk-cache-local-access.git --recursive
-cd roles/common/files/alice-xrootd-builder-docker-container/
-sudo ./start.sh
-cd ../../../..
-vagrant up
-vagrant ssh client
[os-mirror]
name = os-mirror
baseurl = http://mirror.gsi.de/centos/7/os/x86_64
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
proxy=_none_
[update-mirror]
name = update-mirror
baseurl = http://mirror.gsi.de/centos/7/updates/x86_64
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
proxy=_none_
...@@ -8,3 +8,12 @@ ...@@ -8,3 +8,12 @@
src: squid.conf.j2 src: squid.conf.j2
dest: /etc/squid/squid.conf dest: /etc/squid/squid.conf
mode: 0644 mode: 0644
- name: copy squid.service
copy:
src: files/squid.service
dest: /usr/lib/systemd/system/squid.service
mode: '0744'
notify: restart squid
tags:
- config
...@@ -4,6 +4,18 @@ ...@@ -4,6 +4,18 @@
src: yum.conf.j2 src: yum.conf.j2
dest: /etc/yum.conf dest: /etc/yum.conf
# - name: copy os-mirror.repo
# copy:
# src: files/yum.repos.d/os-mirror.repo
# dest: /etc/yum.repos.d/os-mirror.repo
# mode: '0744'
#- name: copy update-mirror.repo
# copy:
# src: files/yum.repos.d/update-mirror.repo
# dest: /etc/yum.repos.d/update-mirror.repo
# mode: '0744'
- name: overwrite /etc/yum.repos.d/epel.repo - name: overwrite /etc/yum.repos.d/epel.repo
copy: copy:
src: epel.repo src: epel.repo
...@@ -134,14 +146,6 @@ ...@@ -134,14 +146,6 @@
tags: tags:
- config - config
- name: copy squid.service
copy:
src: files/squid.service
dest: /usr/lib/systemd/system/squid.service
mode: '0744'
notify: restart squid
tags:
- config
- name: Change file ownership, group and permissions - name: Change file ownership, group and permissions
file: file:
......
...@@ -28,8 +28,8 @@ cache_peer {{ dynafedInstance }} parent 80 0 proxy-only name=dynafed_1 ...@@ -28,8 +28,8 @@ cache_peer {{ dynafedInstance }} parent 80 0 proxy-only name=dynafed_1
# #
# Only allow cachemgr access from localhost # Only allow cachemgr access from localhost
http_access allow localhost manager #http_access allow localhost manager
http_access allow all http_access deny all
#Enable ECAP adapter that resolves 30x redirections to the target from the proxies side #Enable ECAP adapter that resolves 30x redirections to the target from the proxies side
ecap_enable on ecap_enable on
......
[main] [main]
proxy=http://{{ http_proxy }} proxy=http://{{ http_proxy }}:{{ http_port }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment