Fix Fedora Puppet failure to use pip
In Fedora the pip command used by the packaged python-pip is "pip-python" rather than "pip" due to a naming conflict. The Puppet module tries to compensate, but we don't use the Fedora package, so the command really is "pip" for us. Adding symlink line to install_puppet.sh for Fedora to add the pip-python command that Puppet is looking for. Change-Id: I60a03fb6c27a18cd8a536080bcce1baaba965237
This commit is contained in:
parent
63bfee3b20
commit
b120a00bd3
@ -41,6 +41,9 @@ if cat /etc/*release | grep -e "Fedora" &> /dev/null; then
|
||||
mkdir -p /etc/puppet/modules/
|
||||
ln -s /usr/local/share/gems/gems/hiera-puppet-* /etc/puppet/modules/
|
||||
|
||||
# Puppet is expecting the command to be pip-python on Fedora
|
||||
ln -s /usr/bin/pip /usr/bin/pip-python
|
||||
|
||||
elif cat /etc/*release | grep -e "CentOS" -e "Red Hat" &> /dev/null; then
|
||||
rpm -qi epel-release &> /dev/null || rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
|
||||
rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-6.noarch.rpm
|
||||
|
Loading…
x
Reference in New Issue
Block a user