Puppet doens't sync from Master

39 views
Skip to first unread message

Alessandro Ciappei

unread,
Feb 28, 2022, 6:15:02 PM2/28/22
to Puppet Users
Hello everyone,

I'm new on this group, but I use puppet from several years now.
I'm writing you because I have an issue with my puppet.

I have Puppet Master included in RHEL Satellite Server.
All the client on same network sync and download/update the catalog and contents.
Client from another network who passing over firewall can connect to puppet master, request the sync.
The catalog sync without error, but the content are not pulled from the Master.

This is output from server in another network:
[root@******** ~]# puppet agent -tv
Info: Using configured environment 'installation'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for **********************
Info: Applying configuration version '1646047554'
Notice: Applied catalog in 0.03 seconds
[root@********* ~]#

This is output from the server on same network:

[root@***** ~]# puppet agent -tv
Info: Using configured environment 'installation'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for *******
Info: Applying configuration version '1646047614'
Notice: /Stage[main]/Motd/File[/etc/motd]/content:
--- /etc/motd   2022-02-28 10:32:18.495445592 +0000
+++ /tmp/puppet-file20220228-7595-1s9ihep       2022-02-28 11:26:55.057023750 +0000
@@ -40,7 +40,7 @@
 Memory Size:           3.65 GiB
 System Uptime:                 1 day

-System Load:           {15m => 0.0, 1m => 0.0, 5m => 0.0}
+System Load:           {15m => 0.01, 1m => 0.08, 5m => 0.02}


 Environment:           Installation

Notice: /Stage[main]/Motd/File[/etc/motd]/content: content changed '{md5}3c2c5b6d897d03f2953738db6eb89f32' to '{md5}a388e5aeaeb5ee6684f2cb64937bf426'
Notice: Applied catalog in 0.35 seconds
[root@******* ~]#

Both are RHEL 8 on same hostgroup etc

Someone can help me?

All the best
Alex

Martin Alfke

unread,
Mar 1, 2022, 2:51:23 AM3/1/22
to puppet...@googlegroups.com
Check on both nodes the content of files in /opt/puppetlabs/puppet/cache/state directory.
Especially classes.txt and resources.txt.

If file content differs between the two nodes, your classification is not identical.

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/448593ff-799d-49dd-9cd4-510039b7ea54n%40googlegroups.com.

Alessandro Ciappei

unread,
Mar 1, 2022, 5:05:44 AM3/1/22
to Puppet Users
Hi Martin, 

thank you for your reply.
Indeed the classes.txt file is different.

On the client, there are only 'settings' and missing all other classes.
If I try to force it, when I lunch puppet agent, the file will be overwritten.

There is somewhere I can check?

All the best
Alex

Martin Alfke

unread,
Mar 2, 2022, 2:36:59 AM3/2/22
to puppet...@googlegroups.com
Hi Alessandro,

In this case you have different node classification.

1. Check manifests/site.pp in your control-repo.
2. If you are using PE: check the PE node groups.
3. If you have enabled Foreman/Satellite - Puppet integration: check your Foreman/Satellite Puppet configuration for each node.

hth,
Martin


Reply all
Reply to author
Forward
0 new messages