On Thursday, October 8, 2015 at 1:34:39 AM UTC-5, Wei Chen wrote:
>
> Hi,
>
> I change the copied file on client site on purpose to see if this will be
> recovered by server. According to the document, the changed file on client
> will be recovered by server every half an hour. But this doesn't happen.
>
>
A file whose content is *managed* by Puppet will see that content restored
to whatever is specified for it whenever Puppet performs a catalog run. If
the agent is running in daemon mode, then by default it will attempt to
perform a catalog run every 30 minutes.
If you modify a file and the change is not reverted within 30 minutes, then
there is a wide variety of possible explanations, among them:
- no catalog run has been performed. This could be because
- the agent does not yet have a certificate the master will accept
(most likely because its certificate has not yet been signed), or
- the agent is not running in daemon mode, and has not been run
manually, or
- the agent is configured not to perform catalog runs at all, or to
perform them only at intervals larger than 30 minutes, or
- catalog runs have been manually disabled, or
- the agent was unable to obtain its catalog from the master, and
either does not have a cached one or is configured to not use cached
catalogs. OR
- the affected file's content is not under Puppet management. This
could be because
- the file itself is not under management, or
- the file resource corresponding to the affected file specifies
neither a source nor content, or
- the file resource's 'ensure' attribute is set to something other
than 'file', or
- the file resource is configured with replace => false. OR
- the agent does not have sufficient privilege to modify the file.
There may be other possibilities.
Many of those alternatives could be identified either generally or
specifically by examination of the appropriate system log file on the
client, and for a few of them the master's logs might also be
illuminating. We could perhaps rule some of them out by examination of the
resource declaration for the file in question. It might also be useful to
try running the agent manually ('puppet agent -t').
Overall, however, you have not yet given us *nearly* enough information to
diagnose the problem.
John
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/06e1ea9f-6708-4636-afb0-1cdda7f0ef75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.