Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/facter/ipa_facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
end
end

# If sssd isn't installed, ipa isn't enrolled
if not File.exist?('/etc/sssd/sssd.conf')
Facter.add("ipa_enrolled") do
setcode do
false
end
end
end

# In the event we can't find the records from SSSD, we'll use DNS
if Facter.value(:ipa_server).nil? || Facter.value(:ipa_domain).nil?
begin
Expand Down