Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

what determines which modules are examined for catalog compilation?

$
0
0
I have a node defined in site.pp like this: node 'potassium', { include profile::it::potassium } When I run 'puppet agent -t' on potassium I get this error: [root@potassium ~]# puppet agent -t Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: No matching entry for selector parameter with value 'RedHat' at /etc/puppetlabs/code/environments/production/modules/profile/manifests/buildserver/wireshark.pp:3:27 on node potassium. Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run [root@potassium ~]# I understand what the error is referring to and it is true that there is no selector for 'RedHat' in the wireshark module. What I don't understandis why puppet is even looking at the module when compiling the catalog for node potassium. Based upon what I have in site.pp, I'm thinking it should look at the init.pp for module 'profile': [root@orion manifests]# [root@orion manifests]# pwd /etc/puppetlabs/code/environments/production/modules/profile/manifests [root@orion manifests]# cat init.pp class profile { } [root@orion manifests]# As you can see, that contains nothing of relevance. And then I would assume it would look directly at the profile::it::potassium class, which is currently just an empty class: [root@orion it]# pwd /etc/puppetlabs/code/environments/production/modules/profile/manifests/it [root@orion it]# ll total 12 -rw-r--r-- 1 root root 1252 Jun 5 09:40 aptrepo.pp -rw-r--r-- 1 root root 1252 May 25 09:41 neon.pp -rw-r--r-- 1 root root 35 Jun 6 11:42 potassium.pp [root@orion it]# cat potassium.pp class profile::it::potassium { } [root@orion it]# In case it is relevant; i did just upgrade the puppet server from 4.2 to 4.10.1. The agent on potassium is 4.10.1 I appreciate any insight anyone can give me? Gene

Viewing all articles
Browse latest Browse all 6104

Trending Articles