First Time Installing Puppet

302 views
Skip to first unread message

Net Warrior

unread,
Mar 22, 2017, 3:35:09 PM3/22/17
to puppet-users
Hi there guys
Need some help, this is my first time installing puppet , this is my conf:

Installed the repo https://docs.puppet.com/puppet/3.8/install_el.html
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm

RHEL 7 x64
3.10.0-327.13.1.el7.x86_64 #1 SMP Mon Feb 29 13:22:02 EST 2016 x86_64
x86_64 x86_64 GNU/Linux


Resolving Dependencies
--> Running transaction check
---> Package puppetserver.noarch 0:1.2.0-1.el7 will be installed
--> Processing Dependency: puppet < 4.0.0 for package:
puppetserver-1.2.0-1.el7.noarch
--> Processing Dependency: puppet >= 3.7.3 for package:
puppetserver-1.2.0-1.el7.noarch
--> Running transaction check
---> Package puppet.noarch 0:3.8.7-1.el7 will be installed
--> Processing Dependency: ruby >= 1.8 for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: facter >= 1:1.7.0 for package:
puppet-3.8.7-1.el7.noarch
--> Processing Dependency: ruby >= 1.8.7 for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: rubygem-json for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: /usr/bin/ruby for package: puppet-3.8.7-1.el7.noarch
--> Running transaction check
---> Package facter.x86_64 1:2.4.6-1.el7 will be installed
--> Processing Dependency: ruby >= 1.8.7 for package:
1:facter-2.4.6-1.el7.x86_64
--> Processing Dependency: /usr/bin/ruby for package:
1:facter-2.4.6-1.el7.x86_64
---> Package puppet.noarch 0:3.8.7-1.el7 will be installed
--> Processing Dependency: ruby >= 1.8 for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: ruby >= 1.8.7 for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: rubygem-json for package: puppet-3.8.7-1.el7.noarch
--> Processing Dependency: /usr/bin/ruby for package:
1:facter-2.4.6-1.el7.x86_64
--> Processing Dependency: /usr/bin/ruby for package: puppet-3.8.7-1.el7.noarch
--> Finished Dependency Resolution
Error: Package: 1:facter-2.4.6-1.el7.x86_64 (puppetlabs-products)
Requires: ruby >= 1.8.7
Error: Package: puppet-3.8.7-1.el7.noarch (puppetlabs-products)
Requires: rubygem-json
Error: Package: 1:facter-2.4.6-1.el7.x86_64 (puppetlabs-products)
Requires: /usr/bin/ruby
Error: Package: puppet-3.8.7-1.el7.noarch (puppetlabs-products)
Requires: /usr/bin/ruby
Error: Package: puppet-3.8.7-1.el7.noarch (puppetlabs-products)
Requires: ruby >= 1.8.7
Error: Package: puppet-3.8.7-1.el7.noarch (puppetlabs-products)
Requires: ruby >= 1.8
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
avahi-libs-0.6.31-17.el7.x86_64 is a duplicate with
avahi-libs-0.6.31-15.el7_2.1.i686
ghostscript-9.07-20.el7.x86_64 is a duplicate with ghostscript-9.07-18.el7.i686

Ruby packages installed:
rh-ruby22-runtime-2.0-6.el7.x86_64
ruby-augeas-0.5.0-1.el7.x86_64
rh-ruby22-rubygem-bigdecimal-1.2.6-12.el7.x86_64
rh-ruby22-rubygem-rdoc-4.2.0-12.el7.noarch
libselinux-ruby-2.5-6.el7.x86_64
rh-ruby22-rubygem-json-1.8.1-12.el7.x86_64
ruby-libs-2.0.0.648-29.el7.x86_64
rh-ruby22-rubygem-io-console-0.4.3-12.el7.x86_64
rh-ruby22-rubygem-psych-2.0.8-12.el7.x86_64
rh-ruby22-ruby-2.2.2-12.el7.x86_64
ruby-shadow-1.4.1-23.el7.x86_64
rh-ruby22-ruby-libs-2.2.2-12.el7.x86_64
rh-ruby22-ruby-irb-2.2.2-12.el7.noarch
rh-ruby22-rubygems-2.4.5-12.el7.x86_64

Thanks in advance
Regards

James Pryor

unread,
Mar 23, 2017, 3:07:51 AM3/23/17
to puppet...@googlegroups.com
Hello,
There appears to be something really odd going on with that system.
You should see if you can replicate those errors in a clean minimal RHEL7 VM.
I was not able to duplicate it in a clean RHEL7.3 VM installed with the package groups @core and @base. Then I installed the release rpm just like you did, then did yum install puppetserver and it worked perfectly. See https://paste.fedoraproject.org/paste/5EUNcqsa8WiCtzILiLbQIl5M1UNdIGYhyRLivL9gydE=

On your system it looks you have installed Ruby 2.2 installed which is not the ruby that comes with base RHEL7.

I am guessing based on the names rh-ruby22-runtime and rh-ruby22-ruby that they came from are Ruby 2.2 via Software Collections. So this time I reloaded the clean VM, installed ruby 2.2 from SCL, then installed the puppet release rpm, then yum installed puppetserver, and it too worked perfectly. See https://paste.fedoraproject.org/paste/32tFWQM7iueye~hVjDyxQl5M1UNdIGYhyRLivL9gydE=

So I read your error output as Yum is having a collision on ruby dependencies, and if so then I guess that on that machine someone has installed ruby 2.2 (  https://www.softwarecollections.org/en/scls/rhscl/rh-ruby22/  )as the 'system ruby', where if the directions from Red Hat are followed on Software Collections, then it will not collide and overwrite the normal 'system ruby' ruby 2.0.0.

[root@localhost ~]# scl enable rh-ruby22 bash
[root@localhost ~]# which ruby
/opt/rh/rh-ruby22/root/usr/bin/ruby
[root@localhost ~]# ruby --version
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[root@localhost ~]# exit
exit
[root@localhost ~]# which ruby
/bin/ruby
[root@localhost ~]# ruby --version
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
[root@localhost ~]#

You might want to identify where all those ruby RPMs came from:
# for i in $(rpm -qa | grep -i ruby) ; do echo $i ; yum info $i ; echo "-------------------" ; done

Regards,
James





--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAP7y58PcSeuP15sq99Ra%2BWcetp6MLM1T9sS1szqO%3Dm9oMRO5qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Angel L. Mateo

unread,
Mar 23, 2017, 3:42:23 AM3/23/17
to puppet...@googlegroups.com
El 22/03/17 a las 20:34, Net Warrior escribió:
> Hi there guys
> Need some help, this is my first time installing puppet , this is my conf:
>
> Installed the repo https://docs.puppet.com/puppet/3.8/install_el.html
> rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
>
Puppet 3.8 is deprecated. You should not install this version.

Instructions to install latest version can found at:

https://docs.puppet.com/puppet/4.9/install_linux.html

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337
Reply all
Reply to author
Forward
0 new messages