summaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles
diff options
context:
space:
mode:
Diffstat (limited to 'resources/ansible_roles')
-rw-r--r--resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg (renamed from resources/ansible_roles/qtip-workspace/files/workspace/ansible.cfg)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml (renamed from resources/ansible_roles/qtip-workspace/files/workspace/group_vars/all.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml (renamed from resources/ansible_roles/qtip-workspace/files/workspace/host_vars/localhost.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/custom/hosts (renamed from resources/ansible_roles/qtip-workspace/files/workspace/hosts)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json (renamed from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/case.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json (renamed from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/pod.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json (renamed from resources/ansible_roles/qtip-workspace/files/workspace/fixtures/project.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/run.yml (renamed from resources/ansible_roles/qtip-workspace/files/workspace/run.yml)2
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/setup.yml (renamed from resources/ansible_roles/qtip-workspace/files/workspace/setup.yml)2
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml (renamed from resources/ansible_roles/qtip-workspace/files/workspace/teardown.yml)2
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts (renamed from resources/ansible_roles/qtip-workspace/files/workspace/templates/hosts)2
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg (renamed from resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg)2
-rw-r--r--resources/ansible_roles/qtip-workspace/tasks/main.yml7
15 files changed, 6 insertions, 11 deletions
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/ansible.cfg b/resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg
index a80d4ae4..a80d4ae4 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/ansible.cfg
+++ b/resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/group_vars/all.yml b/resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml
index 2967f6eb..2967f6eb 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/group_vars/all.yml
+++ b/resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/host_vars/localhost.yml b/resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml
index 815e2ea3..815e2ea3 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/host_vars/localhost.yml
+++ b/resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/hosts b/resources/ansible_roles/qtip-workspace/files/custom/hosts
index b8b4bbe6..b8b4bbe6 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/hosts
+++ b/resources/ansible_roles/qtip-workspace/files/custom/hosts
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/case.json b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json
index 22abc40f..22abc40f 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/case.json
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/pod.json b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json
index 654b5828..654b5828 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/pod.json
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/project.json b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json
index ecd03e83..ecd03e83 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/fixtures/project.json
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/run.yml b/resources/ansible_roles/qtip-workspace/files/defaults/run.yml
index 6ae98f43..41df913b 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/run.yml
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/run.yml
@@ -1,4 +1,3 @@
-{% raw %}
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
@@ -44,4 +43,3 @@
- { role: qtip, tasks: aggregate, tags: [aggregate] }
# publish results
- { role: opnfv-testapi, tasks: report, when: testapi_url is defined, tags: [report] }
-{% endraw %}
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/setup.yml b/resources/ansible_roles/qtip-workspace/files/defaults/setup.yml
index 48829726..a522d67b 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/setup.yml
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/setup.yml
@@ -1,4 +1,3 @@
-{% raw %}
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
@@ -16,4 +15,3 @@
gather_facts: no
roles:
- { role: qtip, tasks: generate-inventory }
-{% endraw %}
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/teardown.yml b/resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml
index ef013c51..4d51b64f 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/teardown.yml
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml
@@ -1,4 +1,3 @@
-{% raw %}
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
@@ -18,4 +17,3 @@
roles:
# teardown environment
- { role: qtip, tasks: teardown }
-{% endraw %}
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/templates/hosts b/resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts
index 2e8c762e..6779d6f4 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/templates/hosts
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts
@@ -1,4 +1,3 @@
-{% raw %}
localhost ansible_connection=local
[{{ installer_master_group[installer] }}]
@@ -19,4 +18,3 @@ ansible_ssh_common_args=-F ./ssh.cfg
{% endfor %}
{% endfor %}
-{% endraw %}
diff --git a/resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg b/resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg
index d719182c..6c8968d3 100644
--- a/resources/ansible_roles/qtip-workspace/files/workspace/templates/ssh.cfg
+++ b/resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg
@@ -1,4 +1,3 @@
-{% raw %}
# Connect to target node through jump host
#
# OpenSSH 7.3:
@@ -13,4 +12,3 @@ Host {{ name }}
ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p'
{% endfor %}
-{% endraw %}
diff --git a/resources/ansible_roles/qtip-workspace/tasks/main.yml b/resources/ansible_roles/qtip-workspace/tasks/main.yml
index 29da701f..89ce3dd4 100644
--- a/resources/ansible_roles/qtip-workspace/tasks/main.yml
+++ b/resources/ansible_roles/qtip-workspace/tasks/main.yml
@@ -7,7 +7,12 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-- name: generating workspace
+- name: copying default files
+ synchronize:
+ src: defaults/
+ dest: "{{ workspace }}/"
+
+- name: customizing for workspace
template:
src: "{{ item.src }}"
dest: "{{ workspace }}/{{ item.path }}"