Sha256: ed9c97845bd3a108796630336a505c058a2d6c95068f4a2145e5d53cc5402e6e

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Debian
    module Os
      class Selinux
        FACT_NAME = 'os.selinux'

        def call_the_resolver
          selinux = Facter::Resolvers::SELinux.resolve(:enabled)

          Facter::ResolvedFact.new(FACT_NAME, build_fact_list(selinux))
        end

        def build_fact_list(selinux)
          {
            enabled: selinux
          }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facter-4.0.9.pre lib/facts/debian/os/selinux.rb