Ask Your Question
0

Centos 7 agent executing code from apt module

asked 2017-06-01 05:15:35 -0600

romgo gravatar image

Hello,

currently I have my puppet server only dealing with debian clients. Everything is fine. I tried to add a new client running Cento s7, but I encounter a weird situation, the client compilation is failing with error :

[root@ratest /]#puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: This module only works on Debian or derivatives like Ubuntu at /etc/puppet/modules/apt/manifests/params.pp:4 on node ratest.domain.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I see that the client is getting in apt module logic which of course isn't made for CentOS. But I didn't set anywhere on the node to load this module, here is my site.pp :

node 'ratest.domain.local'
{

}

Even with this simple node definition the compilation is failing.

Any tips to point me to the right direction ?

Thank you

edit retag flag offensive close merge delete

Comments

So you don't have any code anywhere including the apt module?

DarylW gravatar imageDarylW ( 2017-06-02 09:14:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-02 09:37:20 -0600

DarylW gravatar image

I did a little experiment on centos7, if I extract the apt module into a 'modules' folder and do puppet apply -e 'notice("foo")' --modulepath ./modules, it runs without issue. If I do puppet apply -e 'include apt' --modulepath ./modules, I get the error you are showing above.

Do you have some external thing (site.pp, External Node Classifier (like foreman or the Puppet Enterprise console) automatically applying some kind of base role? If that is the case, then you need to put the appropriate logic either in your base role to 'do the right thing', aka, not include apt if it's not a debian based system, or classify the node so it doesn't get the same base module.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-06-01 05:15:35 -0600

Seen: 29 times

Last updated: Jun 02