Cleanup customizable variables of workspace 03/33603/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 21 Apr 2017 01:59:27 +0000 (09:59 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 21 Apr 2017 05:43:50 +0000 (13:43 +0800)
Change-Id: I00185b7c73692e2aeafb1307cea81f4f2d149c74
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
resources/roles/qtip-workspace/defaults/main.yml
resources/roles/qtip-workspace/files/copy/templates/hosts
resources/roles/qtip-workspace/files/copy/templates/ssh.cfg
resources/roles/qtip-workspace/files/render/group_vars/all.yml
resources/roles/qtip-workspace/files/render/host_vars/localhost.yml
resources/roles/qtip-workspace/files/render/hosts
tests/integration/workspace-create.yml

index 55e2cbc..0192307 100644 (file)
@@ -9,7 +9,7 @@
 
 installer: fuel
 
-installer_master: fuel-master
+installer_master_host: fuel-master
 
 installer_master_group:
   fuel: fuel-masters
index 27c8d1d..6779d6f 100644 (file)
@@ -1,7 +1,7 @@
 localhost   ansible_connection=local
 
 [{{ installer_master_group[installer] }}]
-{{ installer_master }}
+{{ installer_master_host }}
 
 [fuel-groups:children]
 {% for group in hosts|sort %}
index d6a266b..6c8968d 100644 (file)
@@ -9,6 +9,6 @@
 Host {{ name }}
   HostName {{ host.ansible_ssh_host }}
   User root
-  ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master }} 'ssh-add && nc %h %p'
+  ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p'
 
 {% endfor %}
index af7f756..d85eaab 100644 (file)
@@ -12,16 +12,9 @@ qtip_results: results
 qtip_fixtures: fixtures
 qtip_dump: dump
 qtip_cache: .cache
-
-testapi_url: http://localhost:8000/api/v1
-project_name: qtip
-case_name: compute
-pod_name: qtip-pod
-installer: "{{ installer }}"
-version: master
-scenario: demo
-
-installer_master: "{{ installer_master }}"
 installer_master_group:
   fuel: fuel-masters
   apex: apex-underclouds
+
+installer: "{{ installer }}"
+installer_master_host: "{{ installer_master_host }}"
index 8135e80..815e2ea 100644 (file)
@@ -7,3 +7,10 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
+# set `testapi_url` to enable reporting to testapi
+# testapi_url: http://localhost:8000/api/v1
+project_name: qtip
+case_name: "{{ case_name|default('compute') }}"
+pod_name: "{{ pod_name|default('qtip-pod') }}"
+scenario: "{{ scenario|default('generic') }}"
+version: "{{ version|default('master') }}"
index bf19efa..b8b4bbe 100644 (file)
@@ -1,4 +1,4 @@
 localhost   ansible_connection=local
 
 [{{ installer_master_group[installer] }}]
-{{ installer_master }}
+{{ installer_master_host }}
index 0de94d4..1b47326 100644 (file)
 
       # modify or override variables to customize the workspace
 
+      # opnfv environment
+
       installer: fuel         # <fuel|apex>
+      installer_master_host: f5    # make sure you can login it with key authentication
+
+      # set testapi_url to enable reportint to testapi
+
+#      testapi_url: http://localhost:8000/api/v1
+
+      # report variables
+
+#      project_name: qtip
+#      case_name: compute
+#      pod_name: "{{ pod_name|default('qtip-pod') }}"
+#      scenario: "{{ scenario|default('generic') }}"
+#      version: master
+#      scenario: demo
 
-      # test api settings
-      testapi_url: http://localhost:8000/api/v1
-      pod_name: qtip-pod      # pod name for testapi
-      scenario: default       # scenario for testapi
+      # qtip settings
 
-      # local settings
-      installer_master: f5    # hostname of installer master, make sure you can login it with key authentication
       qtip_package: ../../..  # relative path from **workspace**, not current directory