Selaa lähdekoodia

Merge pull request #173 from jaredledvina/feature/ansible-tweaks-speed-up-tests

Feature/ansible tweaks speed up tests
Jared 7 vuotta sitten
vanhempi
commit
44b96524e8

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 site
 molecule/default/data/
+molecule/*/cache/

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
 ### Changed
 - Add support for configuring [Tessen](https://docs.sensu.io/sensu-core/1.4/reference/tessen/) via `sensu_enable_tessen` (@jaredledvina)
 - Stop publishing development/testing files to Ansible Galaxy (@jaredledvina)
+- Update molecule's testing configuration for speed and task profiling (@jaredledvina)
 
 ## [2.5.0] - 2018-06-16
 ### Changed

+ 9 - 0
molecule/amazonlinux/molecule.yml

@@ -23,6 +23,15 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   playbooks:
     prepare: ../default/prepare.yml
     create: ../default/create.yml

+ 9 - 0
molecule/centos/molecule.yml

@@ -23,6 +23,15 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   playbooks:
     prepare: ../default/prepare.yml
     create: ../default/create.yml

+ 9 - 0
molecule/debian/molecule.yml

@@ -24,6 +24,15 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   playbooks:
     prepare: ../default/prepare.yml
     create: ../default/create.yml

+ 9 - 0
molecule/default/molecule.yml

@@ -86,6 +86,15 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   directory: ../default/
   lint:
     name: ansible-lint

+ 9 - 0
molecule/fedora/molecule.yml

@@ -32,6 +32,15 @@ platforms:
       - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   playbooks:
     prepare: ../default/prepare.yml
     create: ../default/create.yml

+ 9 - 0
molecule/ubuntu/molecule.yml

@@ -31,6 +31,15 @@ platforms:
 #      - /sys/fs/cgroup:/sys/fs/cgroup:ro
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      callback_whitelist: timer,profile_tasks
+      fact_caching: jsonfile
+      fact_caching_connection: ./cache
+      poll_interval: 3
+      forks: 100
+    connection:
+      pipelining: true
   playbooks:
     prepare: ../default/prepare.yml
     create: ../default/create.yml