Merge "Update functest to fix failing tests"
authorAaron Smith <aasmith@redhat.com>
Fri, 16 Mar 2018 18:08:30 +0000 (18:08 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Fri, 16 Mar 2018 18:08:30 +0000 (18:08 +0000)
docker/ansible/roles/config_files/tasks/additional_configs.yml [new file with mode: 0644]
docker/ansible/roles/config_files/tasks/default_read_import.yml
docker/ansible/roles/config_files/tasks/main.yml
puppet-barometer/templates/collectd-ceil.conf.erb
puppet-barometer/templates/collectd-gnocchi.conf.erb

diff --git a/docker/ansible/roles/config_files/tasks/additional_configs.yml b/docker/ansible/roles/config_files/tasks/additional_configs.yml
new file mode 100644 (file)
index 0000000..28cad8a
--- /dev/null
@@ -0,0 +1,23 @@
+#Copyright 2018 OPNFV and Intel Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+---
+
+- name: copy additional configuration files to target system
+  template:
+    src: "{{ item }}"
+    dest: "{{ config_file_dir }}/{{ item | basename | regex_replace('\\.j2','') }}"
+  with_fileglob:
+    - "{{ additional_configs_path }}"
+  tags:
+    - copy_additional_configs
index 589ace3..d70919b 100644 (file)
 # limitations under the License.
 ---
 
+- name: enable contextswitch  plugin
+  replace:
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
+      regexp: '(\s+)#LoadPlugin contextswitch(\s+.*)?$'
+      replace: '\1LoadPlugin contextswitch\2'
+  tags:
+    - contextswitch
+
 - name: enable cpu plugin
   replace:
       path: "{{ config_file_dir }}/default_read_plugins.conf"
   tags:
     - cpufreq
 
+- name: enable df plugin
+  replace:
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
+      regexp: '(\s+)#LoadPlugin df(\s+.*)?$'
+      replace: '\1LoadPlugin df\2'
+  tags:
+    - df
+
 - name: enable disk plugin
   replace:
       path: "{{ config_file_dir }}/default_read_plugins.conf"
   tags:
     - disk
 
+- name: enable ethstat plugin
+  replace:
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
+      regexp: '(\s+)#LoadPlugin ethstat(\s+.*)?$'
+      replace: '\1LoadPlugin ethstat\2'
+  tags:
+    - ethstat
+
+- name: enable ipc plugin
+  replace:
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
+      regexp: '(\s+)#LoadPlugin ipc(\s+.*)?$'
+      replace: '\1LoadPlugin ipc\2'
+  tags:
+    - ipc
+
+- name: enable irq plugin
+  replace:
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
+      regexp: '(\s+)#LoadPlugin irq(\s+.*)?$'
+      replace: '\1LoadPlugin irq\2'
+  tags:
+    - irq
+
 - name: enable load plugin
   replace:
       path: "{{ config_file_dir }}/default_read_plugins.conf"
   tags:
     - processes
 
-- name: enable irq plugin
-  replace:
-      path: "{{ config_file_dir }}/default_read_plugins.conf"
-      regexp: '(\s+)#LoadPlugin irq(\s+.*)?$'
-      replace: '\1LoadPlugin irq\2'
-  tags:
-    - irq
-
 - name: enable swap plugin
   replace:
-      path: "{{ config_file_dir }}/default_plugins.conf"
+      path: "{{ config_file_dir }}/default_read_plugins.conf"
       regexp: '(\s+)#LoadPlugin swap(\s+.*)?$'
       replace: '\1LoadPlugin swap\2'
   tags:
     - swap
 
-- name: enable ethstat plugin
-  replace:
-      path: "{{ config_file_dir }}/default_read_plugins.conf"
-      regexp: '(\s+)#LoadPlugin ethstat(\s+.*)?$'
-      replace: '\1LoadPlugin ethstat\2'
-  tags:
-    - ethstat
-
-- name: enable ipc plugin
-  replace:
-      path: "{{ config_file_dir }}/default_read_plugins.conf"
-      regexp: '(\s+)#LoadPlugin ipc(\s+.*)?$'
-      replace: '\1LoadPlugin ipc\2'
-  tags:
-    - ipc
-
-- name: enable df plugin
-  replace:
-      path: "{{ config_file_dir }}/default_read_plugins.conf"
-      regexp: '(\s+)#LoadPlugin df(\s+.*)?$'
-      replace: '\1LoadPlugin df\2'
-  tags:
-    - df
-
 - name: enable turbostat plugin
   replace:
       path: "{{ config_file_dir }}/default_read_plugins.conf"
       replace: '\1LoadPlugin uptime\2'
   tags:
     - uptime
-
-- name: enable contextswitch  plugin
-  replace:
-      path: "{{ config_file_dir }}/default_read_plugins.conf"
-      regexp: '(\s+)#LoadPlugin contextswitch(\s+.*)?$'
-      replace: '\1LoadPlugin contextswitch\2'
-  tags:
-    - contextswitch
-
index 7d3919a..52535a0 100644 (file)
 - name: enable ipmi plugin
   include: ipmi.yml
 
-- name: copy additional configuration files to target system
-  template:
-    src: "{{ item }}"
-    dest: "{{ config_file_dir }}/{{ item | basename | regex_replace('\\.j2','') }}"
-  tags:
-   - always
-   - copy_additional_configs
-  with_fileglob:
-    - "{{ additional_configs_path }}"
+- name: copy additional config files
+  include: additional_configs.yml
index b21accd..7f3b9c0 100644 (file)
@@ -30,6 +30,7 @@
         # Batch size
         BATCH_SIZE "1"
 
+        DEFAULT_ARCHIVE_POLICY "high"
         # Service endpoint addresses
         OS_AUTH_URL "<%=@auth_url-%>/v3"
 
index 71fec74..9ab06cd 100644 (file)
@@ -16,6 +16,7 @@
         # Batch size
         BATCH_SIZE "1"
 
+        DEFAULT_ARCHIVE_POLICY "high"
         # Service endpoint addresses
         OS_AUTH_URL "<%=@auth_url-%>/v3"