xci: playbooks: Copy scenarios instead of symlinking them 75/47775/8
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Fri, 24 Nov 2017 16:09:11 +0000 (17:09 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 30 Nov 2017 11:20:29 +0000 (11:20 +0000)
Previously, the scenarios were symlinked from the checked out location
to {{ playbook_dir }}/roles. However, the symlinks were pointless since
they only exist in our local releng-xci directory. The roles much also
be present in OPNFV_RELENG_PATH which is the place where the deployment
happens. We use 'rsync' to copy our local releng-xci directory to the
remote one so our roles can be automatically be placed there if we copy
them instead of symlinking them.

Change-Id: I735db71eedfaa51d7196761aa2af8329d86cb775
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/get-opnfv-scenario-requirements.yml

index 23aa1d4..a7b177e 100644 (file)
       delay: "{{ git_clone_retry_delay }}"
 
     - name: Plug in the roles to XCI
-      file:
-        state: link
-        src: "{{ item.path | default(scenario_path_default) }}/{{ item.scenario | default(item.src | basename) }}/{{ item.role }}"
-        dest: "{{ role_path_default }}/{{ item.scenario }}"
-        force: yes
+      shell: >-
+          cp -a {{ item.path | default(scenario_path_default) }}/{{ item.scenario | default(item.src | basename) }}/{{ item.role }}
+          {{ role_path_default }}/{{ item.scenario }}
       with_items: "{{ scenarios }}"
 
   vars: