Paramerize logging.conf for all services

Paramerize logging.conf for all services which
use oslo.log

Change-Id: Ife02a56cde601a7785db7b7d19d7d3c5a34f5c4b
Related-Prod: PROD-21353
diff --git a/tests/pillar/logging/_logging.sls b/tests/pillar/logging/_logging.sls
new file mode 100644
index 0000000..896022a
--- /dev/null
+++ b/tests/pillar/logging/_logging.sls
@@ -0,0 +1,12 @@
+_data:
+  logging:
+    app_name: 'nova'
+    log_appender: true
+    log_handlers:
+      watchedfile:
+        enabled: true
+      fluentd:
+        enabled: true
+      ossyslog:
+        enabled: true
+service_name: nova
\ No newline at end of file
diff --git a/tests/pillar/queens/oslo/_log.sls b/tests/pillar/queens/oslo/_log.sls
index ae30847..a7df0f9 100644
--- a/tests/pillar/queens/oslo/_log.sls
+++ b/tests/pillar/queens/oslo/_log.sls
@@ -1,5 +1,12 @@
 _data:
   debug: false
-  log_file: /path/to/file
+  log_file: 'nova.log'
+  log_dir: '/var/log/nova'
+  log_config_append: '/etc/nova/loggin.conf'
   use_syslog: true
   syslog_log_facility: INFO
+  app_name: 'nova'
+  log_appender: true
+  log_handlers:
+    watchedfile:
+      enabled: true
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 96cb9ad..f626112 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -56,6 +56,9 @@
     - source: ${template_path}
     - context:
       _data: {{ pillar.get("_data", {}) }}
+    {%- if pillar.get('service_name') %}
+      service_name: {{ pillar.service_name }}
+    {%- endif %}
 EOF
 }