Include is not working which is defined in nodes.pp
Hi Team,
I am facing one strange issue - I've installed puppet client on two server and configured it properly On first puppet agent i verified that its puppet configured everything perfectly according to the manifests.
Till yesterday it was working fine but suddenly today I am facing uncommon error that its failing for all the classes which includes in node.spp
The only issue occurred when i was trying to install pupept client on one another server where the timezone was different. So we updated the time through ntpdate -s <ntpservername> on all the servers including the first puppet agent where puppet was working fine so that everything will get synchronized with same timezone. And then i was able to sign the client certificate for second client from puppet master server.
I don't know what has happened and i am 90% sure that ntp shouldn't have caused this issue but facing this issue :| Do you think ntp should have caused any issue ??
When i removed the include part from nodes.pp, its working fine and finishing the catalogue successfully
I am not using modules convention whereas using site.pp to define all the classes, definitions,etc and trust me it was working few days ago
Also I am using the same class name as file name (pfb the example)
[root@10 classes]# more appusers.pp
class appusers {
# minimum required.
group { "weblogic":
ensure => "present",
}
Any clue will be really helpful as i am stuck with it :|
Please find the below error :
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find **classes** appusers, appserver, weblogic, sudo
at /etc/puppet/manifests/nodes.pp:25 on node 10.71.32.90
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
You can include the all classes in /etc/manifests/site.pp. Not include in your modules.
I would check the following: (1) make sure nothing has changed in the puppet master's `puppet.conf`, such as the `modulepath` (2) make sure the permissions are correct on `/etc/puppet/modules` and on the directories and subdirectories of `.../modules/appusers`, `.../modules/appserver`, etc.
In your puppet.conf file you mention the path of your module i.e modulepath=/etc/puppet/modules And the modulename is same as classname and then include in your site.pp file.
Thanks guys for sparing the time and helping me. Actually all the files are unchanged and permissions are correct as far as i know. The only issue occurred when i was trying to install client on one server where the timezone was different.
So we updated the time through ntpdate -s <ntpservername> and then i was able to sign the client certificate from server. I don't know what has happened and i am 90% sure that ntp shouldn't have caused this issue but facing the same issue :| Do you think ntp should have caused any issue or is there