summaryrefslogtreecommitdiffstats
path: root/changelogs
diff options
context:
space:
mode:
authorLukas Pirl <git@lukas-pirl.de>2020-05-15 15:38:56 +0200
committerGitHub <noreply@github.com>2020-05-15 15:38:56 +0200
commit34db57a47f875d11c4068567b9ec7ace174ec4cf (patch)
tree165fe896ceea5a1bffe480c37d968c0dd4bd3255 /changelogs
parenttypofix - globbing instead of globing. (#69515) (diff)
downloadansible-34db57a47f875d11c4068567b9ec7ace174ec4cf.tar.xz
ansible-34db57a47f875d11c4068567b9ec7ace174ec4cf.zip
introduce fact "ansible_processor_nproc": number of usable vcpus (#66569)
This fact reflects the number of usable vcpus (which might be different from ansible_processor_vcpus, e.g., in containers with limits). See also #51504. * Add fixture data and update unit tests Co-authored-by: Sam Doran <sdoran@redhat.com>
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/66569-introduce-fact-ansible_processor_nproc.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/66569-introduce-fact-ansible_processor_nproc.yml b/changelogs/fragments/66569-introduce-fact-ansible_processor_nproc.yml
new file mode 100644
index 0000000000..509b3bd453
--- /dev/null
+++ b/changelogs/fragments/66569-introduce-fact-ansible_processor_nproc.yml
@@ -0,0 +1,4 @@
+bugfixes:
+ - facts - introduce fact "ansible_processor_nproc" which reflects the
+ number of vcpus available to processes (falls back to the number of
+ vcpus available to the scheduler)