Dependencies issue for puppet agent installation

437 views
Skip to first unread message

Subodh Kant

unread,
Feb 17, 2015, 1:52:50 AM2/17/15
to puppet...@googlegroups.com
Hi Puppet Team,

I am facing Dependencies issue for puppet agent installation. Please help me to resolved this issue. I am running PE 3.7 on CentOS 7 and clients are CentOS 7 and RHEL 7. I ran this command on puppet agent...


And getting this error....

---> Package pe-rubygem-net-ssh.noarch 0:2.1.4-2.pe.el7 will be installed
---> Package pe-virt-what.x86_64 0:1.14-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: pe-facter-2.2.0.2-1.pe.el7.x86_64 (puppetlabs-pepackages)
           Requires: pciutils
Error: Package: pe-libldap-2.4.39-5.pe.el7.x86_64 (puppetlabs-pepackages)
           Requires: cyrus-sasl
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
/tmp/tmp.7k7yHBjblk: line 40: /opt/puppet/bin/puppet: No such file or directory
/tmp/tmp.7k7yHBjblk: line 41: /opt/puppet/bin/facter: No such file or directory
/tmp/tmp.7k7yHBjblk: line 41: /opt/puppet/bin/puppet: No such file or directory
/tmp/tmp.7k7yHBjblk: line 42: /opt/puppet/bin/puppet: No such file or directory
/tmp/tmp.7k7yHBjblk: line 15: /opt/puppet/bin/puppet: No such file or directory
/tmp/tmp.7k7yHBjblk: line 44: /opt/puppet/bin/puppet: No such file or directory
Error running install script /tmp/tmp.7k7yHBjblk


Please help.

Thanks
Subodh Kant

Martin Alfke

unread,
Feb 17, 2015, 3:04:36 AM2/17/15
to puppet...@googlegroups.com
Hi Subodh,

does the agent have the CentOS/RHEL repositories enabled?
Look into /etc/yum.repos.d and check for *.repo files.

hth,

Martin
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c57686b3-b5a6-4a73-8338-e30b21d46201%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Subodh Kant

unread,
Feb 17, 2015, 7:26:47 AM2/17/15
to puppet...@googlegroups.com
Hi Martin,

Thank you for your reply.

My CentOS servers does not have internet connectivity so CentOS repo will not work in this case. And RHEL also not connected Redhat satellite server so there is no repo for RHEL too.

On my puppet server only, yum.puppetlabs.com is enable and it can talk to puppet yum repository.

My assumption is that, puppet client installation by using curl command will talk to puppet server for all the dependencies since puppet server is part of pe-repo class under classification and puppet client server will not required internet connectivity for any dependencies. Am i correct ???

I do not want to enable internet for puppet client servers.

Martin Alfke

unread,
Feb 17, 2015, 7:40:23 AM2/17/15
to puppet...@googlegroups.com
Hi Subodh,

the Puppet master generates a catalog for the agent.
Within the catalog the agent receives information regarding its configuration.
The agent will then issue proper commands based on the declared Puppet resource types.
For packages the agent (RHEL, CentOS) will use the yum command.
This means that the agent needs access to a yum repository server.

Most companies do not want their agents to fetch packages directly from the internet and use a local repository mirror for that purpose.

hth,

Martin
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c67c1d53-cc7a-43ed-8109-3838b903dba9%40googlegroups.com.

Subodh Kant

unread,
Feb 17, 2015, 10:45:02 AM2/17/15
to puppet...@googlegroups.com
Hi Martin,

Thanks.

But how other packages are getting resolved?? If you see my log, all packages "pe-xxxxx" are getting resolved but only two packages (pciutils, cyrus-sasl) are getting fail which is not "pe-xxxxx". When i install these two packages manually by RPM and then i ran "curl" command to registration, i was able to registration the node to puppet master.

---> Package pe-rubygem-net-ssh.noarch 0:2.1.4-2.pe.el7 will be installed
---> Package pe-virt-what.x86_64 0:1.14-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: pe-facter-2.2.0.2-1.pe.el7.x86_64 (puppetlabs-pepackages)
           Requires: pciutils
Error: Package: pe-libldap-2.4.39-5.pe.el7.x86_64 (puppetlabs-pepackages)
           Requires: cyrus-sasl
 You could try using --skip-broken to work around the problem


Thanks
Subodh Kant

Martin Alfke

unread,
Feb 17, 2015, 10:48:03 AM2/17/15
to puppet...@googlegroups.com
Hi Subodh,

when using the simple curl puppet agent installer method you will get a repo file created on the node and the puppet master acts as pe-package repository server.
All non PE packages have to be installed using the normal cents/rhel repositories.

hth,

Martin
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAAbO_CUScvAs5nao_16py%2BQ8%3DRhJvU1exNEDzz634e-uJwkYzA%40mail.gmail.com.

Subodh Kant

unread,
Feb 18, 2015, 1:26:16 AM2/18/15
to puppet...@googlegroups.com
Hi Martin,

Thanks.

Is there any way to install puppet agent without having internet connectivity.??

Thnaks
Subodh Kant

Martin Alfke

unread,
Feb 18, 2015, 2:16:18 AM2/18/15
to puppet...@googlegroups.com
Hi Subodh,

you might want a repository mirror inside your network.
Or: add a local repo only having the required packages.
Or: install required packages during provisioning.

Best,

Martin
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/785b7f89-56bf-4f6a-8b89-2aeb210a1d68%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages