Merge workspace files into one folder 03/33803/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 25 Apr 2017 11:29:36 +0000 (19:29 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 25 Apr 2017 11:29:36 +0000 (19:29 +0800)
Change-Id: Ie8d0e8fdd6d6c212701ba1ee10b1d05da1ccca22
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
15 files changed:
resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep [deleted file]
resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep [deleted file]
resources/ansible_roles/qtip-workspace/files/workspace/ansible.cfg [moved from resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/fixtures/case.json [moved from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/fixtures/pod.json [moved from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/fixtures/project.json [moved from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/group_vars/all.yml [moved from resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/host_vars/localhost.yml [moved from resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/hosts [moved from resources/ansible_roles/qtip-workspace/files/custom/hosts with 100% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/run.yml [moved from resources/ansible_roles/qtip-workspace/files/defaults/run.yml with 98% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/setup.yml [moved from resources/ansible_roles/qtip-workspace/files/defaults/setup.yml with 96% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/teardown.yml [moved from resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml with 96% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/templates/hosts [moved from resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts with 94% similarity]
resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg [moved from resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg with 94% similarity]
resources/ansible_roles/qtip-workspace/tasks/main.yml

diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
deleted file mode 100644 (file)
index e69de29..0000000
@@ -1,3 +1,4 @@
+{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -43,3 +44,4 @@
     - { role: qtip, tasks: aggregate, tags: [aggregate] }
   # publish results
     - { role: opnfv-testapi, tasks: report, when: testapi_url is defined, tags: [report] }
+{% endraw %}
@@ -1,3 +1,4 @@
+{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -15,3 +16,4 @@
   gather_facts: no
   roles:
     - { role: qtip, tasks: generate-inventory }
+{% endraw %}
@@ -1,3 +1,4 @@
+{% raw %}
 ##############################################################################
 # Copyright (c) 2017 ZTE Corporation and others.
 #
@@ -17,3 +18,4 @@
   roles:
   # teardown environment
   - { role: qtip, tasks: teardown }
+{% endraw %}
@@ -1,3 +1,4 @@
+{% raw %}
 localhost   ansible_connection=local
 
 [{{ installer_master_group[installer] }}]
@@ -18,3 +19,4 @@ ansible_ssh_common_args=-F ./ssh.cfg
 {% endfor %}
 
 {% endfor %}
+{% endraw %}
@@ -1,3 +1,4 @@
+{% raw %}
 # Connect to target node through jump host
 #
 # OpenSSH 7.3:
@@ -12,3 +13,4 @@ Host {{ name }}
   ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p'
 
 {% endfor %}
+{% endraw %}
index 89ce3dd..29da701 100644 (file)
@@ -7,12 +7,7 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-- name: copying default files
-  synchronize:
-    src:  defaults/
-    dest: "{{ workspace }}/"
-
-- name: customizing for workspace
+- name: generating workspace
   template:
     src: "{{ item.src }}"
     dest: "{{ workspace }}/{{ item.path }}"