Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

fixes #6491 - fail pulp node installation when freeipa present #1

Merged
merged 1 commit into from
Jul 28, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/puppet/parser/functions/validate_pulp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ module Puppet::Parser::Functions
"the pulp node can't be installed on a machine with Katello master"
end

if system("(rpm -q ipa-server || rpm -q freeipa-server) &>/dev/null")
raise Puppet::ParseError,
"the pulp node can't be installed on a machine with IPA"
end

unless system("subscription-manager identity | grep identity")
raise Puppet::ParseError,
Expand Down