Merge "Also consider podman containers when running facter"

This commit is contained in:
Zuul 2018-10-04 07:23:09 +00:00 committed by Gerrit Code Review
commit e65b6cceab
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
require 'facter'
if not File.exists?('/.dockerenv')
# Do not call crm_node -n when running inside a container
if not File.exists?('/.dockerenv') and not File.exists?('/run/.containerenv')
Facter.add('pacemaker_node_name') do
setcode do
Facter::Core::Execution.exec 'crm_node -n'