Skip to content
Snippets Groups Projects
Commit 6afe624f authored by Luis Contreras's avatar Luis Contreras
Browse files

changes for INFRA-5311

parent 54d7c8b5
No related branches found
No related tags found
1 merge request!11Infra 5311
Pipeline #122510 failed
......@@ -28,6 +28,23 @@ provisioner:
dest: 20-SystemExpert/10-ACC/999-Cryo/
phoebus_settings:
org.phoebus.pv.ca/addr_list: 127.0.0.1
phoebus_opis_single_repo: "https://gitlab.esss.lu.se/beam-diagnostics/opis-pbi/opis-pbi-engineer.git"
molecule_group_onerepo:
phoebus_opis_path: /data/opis-pbi
phoebus_opis_repos:
- url: https://gitlab.esss.lu.se/beam-diagnostics/opis-pbi/opis-pbi-systemexpert.git
version: "1d34327ea88a12fec5e64c38839e038361e0a660"
- url: https://gitlab.esss.lu.se/beam-diagnostics/opis-pbi/opis-pbi-engineer.git
dest: "10-Engineer/10-ACC/99-PBI"
- url: https://gitlab.esss.lu.se/beam-diagnostics/opis-pbi/opis-pbi-operator.git
dest: "30-Operator/10-ACC/99-PBI"
- url: https://gitlab.esss.lu.se/opis/acc/wtrc/operator.git
dest: 30-Operator/10-ACC/999-WtrC
- url: https://gitlab.esss.lu.se/opis/acc/cryo/systemexpert.git
dest: 20-SystemExpert/10-ACC/999-Cryo/
phoebus_settings:
org.phoebus.pv.ca/addr_list: 127.0.0.1
phoebus_opis_single_repo: "https://gitlab.esss.lu.se/beam-diagnostics/opis-pbi/opis-pbi-engineer.git"
scenario:
name: default
verifier:
......@@ -43,3 +60,7 @@ platforms:
image: ubuntu:20.04
groups:
- molecule_group
- name: ics-ans-role-phoebus-onerepo
image: centos:7
groups:
- molecule_group_onerepo
......@@ -149,6 +149,15 @@
- phoebus-ess-opis
- phoebus-git-folders
- name: Filter single OPI repository
git:
repo: "{{ item.url }}"
dest: "{{ phoebus_opis_path }}/{{ item.dest | default(item.url | basename | replace('.git', '')) }}"
version: "{{ item.version | default(omit) }}"
force: true
loop: "{{ phoebus_opis_repos }}"
when: phoebus_opis_single_repo | length > 0 and phoebus_opis_single_repo == "{{ item.url }}"
- name: install CS-Studio OPIs repositories
git:
repo: "{{ item.url }}"
......@@ -160,6 +169,7 @@
- phoebus-ess-opis
- phoebus-git-folders
register: phoebus_git_data
when: phoebus_opis_single_repo | length == 0
- name: install CS-Studio layouts folder
git:
......@@ -187,7 +197,7 @@
file:
path: "{{ item.path | dirname }}"
state: absent
when: (item.path | dirname not in phoebus_git_data.results | map(attribute='invocation.module_args.dest') | list) and (item.path | dirname + '/' not in phoebus_git_data.results | map(attribute='invocation.module_args.dest') | list)
when: phoebus_opis_single_repo | length == 0 and (item.path | dirname not in phoebus_git_data.results | map(attribute='invocation.module_args.dest') | list) and (item.path | dirname + '/' not in phoebus_git_data.results | map(attribute='invocation.module_args.dest') | list)
loop: "{{ phoebus_opis_found_repos.files }}"
tags:
- phoebus-ess-opis
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