Sha256: 91c0b4a89349a3e8e52a9ff112c2e54327cbddafafce434fbabacbe283025eb1

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module Facts
  module El
    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/el/os/selinux.rb