File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
roles/cvmfs_server_meta_info/tasks Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11---
22- name : Create a meta.json containing the CVMFS Server Meta Information
33 ansible.builtin.copy :
4- content : " {{ cvmfs_meta | to_nice_json(indent=2, sort_keys=false) }}"
5- dest : " /srv /cvmfs/info/v1/meta.json"
4+ content : " {{ cvmfs_server_meta | to_nice_json(indent=2, sort_keys=false) }}"
5+ dest : " {{ cvmfs_srv_mount }} /cvmfs/info/v1/meta.json"
66 owner : root
77 group : root
88 mode : 0644
99 become : true
10+
11+ - name : Create meta information for each CVMFS repository
12+ ansible.builtin.include_tasks : repo_meta_info.yml
13+ vars :
14+ this_cvmfs_repo : " {{ item }}"
15+ this_cvmfs_repo_meta :
16+ description : " {{ item.description | default(omit) }}"
17+ recommended-stratum0 : " http://{{ item.stratum0 }}/cvmfs/{{ item.repository }}"
18+ recommended-stratum1s : " {{ eessi_cvmfs_server_urls | selectattr('domain', 'in', item.repository) |
19+ map(attribute='urls') | map('regex_replace', '@fqrn@', item.repository)}}"
20+ with_items : " {{ eessi_cvmfs_repositories }}"
21+ when : " 'cvmfsstratum0servers' in group_names or cvmfs_role == 'stratum0'"
1022...
You can’t perform that action at this time.
0 commit comments