On Mar 29, 2011, at 7:38 PM, metalove wrote:

> Let's assume that
> the file in the server was rollbacked to old data because of some
> reason.
> 
> then, puppet client will update also..
> 
> What I want is,
> puppet client should reject the update in this case...
> 
> so is there any option at puppet clinet to reject update in this case?


Short answer:
No

Hard answer: (and probably the wrong answer):
You can hack something together using exec or write your own provider using 
ruby.


Complete answer:
I'd say that if you have a problem with your server's files reverting for no 
reason, you need to fix your process or server.  To me this suggests you need 
to put tighter control on your puppetmaster's folder.  Frankly, I consider 
being able to revert files in the puppet folder to undo a change to be good.  
(Yes, reverting does take thought because puppet won't undo changes.  It will 
only push the current configuration.)

> Thanks.
> 
> On 3월30일, 오전10시27분, Patrick <[email protected]> wrote:
>> On Mar 29, 2011, at 8:52 AM, metalove wrote:
>> 
>>> sorry for confusion.
>> 
>>> What I meant was,  if
>> 
>>> -. the same file is between puppet daemon(server) and client
>>> -. the timestamp was older at puppet server,
>> 
>>> I think that puppet client should not update, right?
>>> but puppet client seems update even the server's file is old....
>> 
>>> so, what I should do, not to update the old file from server?
>> 
>> The problem is that, in general, this isn't how puppet works.  Usually, it's 
>> considered a feature that you know that if the file is changed on the 
>> client, puppet will revert it.  First, you should consider if generating the 
>> file using information about the client might be better.
>> 
>> Next, with you design, what would us expect to happen if the server's file 
>> changes?  Is it only then that you want to wipe it?
>> 
>> Conclusion:
>> Puppet can do that, but it's not the usual way, and I think you need to use 
>> an exec instead.
>> 
>> 
>> 
>> 
>> 
>>> puppet client <--------------> puppet server
>> 
>>> index.html                        index.html
>>> 2011-03-29                       2011-03-28
>> 
>>> On 3월29일, 오후11시56분, Felix Frank <[email protected]>
>>> wrote:
>>>> Hi,
>> 
>>>> On 03/29/2011 03:32 AM, metalove wrote:
>> 
>>>>> Hi, all.
>> 
>>>>> I'm not familiar with puppet itself and want to know that this is
>>>>> possible or not..
>>>>> As I know, puppet client updates all files from server without regard
>>>>> to the files are old or new..
>>>>> But, I think that puppet client should update the files only when the
>>>>> target files from server are new..
>>>>> so is there any option to do this?
>> 
>>>> Not that I'm aware of, no. When you're using files' "source" parameter,
>>>> you tell puppet that the contents should never change.
>> 
>>>> To enable puppet to deal with changing files, there are other ways such
>>>> as augeas.
>> 
>>>> HTH,
>>>> Felix
>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Puppet Users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/puppet-users?hl=en.- 원본 텍스트 숨기기 -
>> 
>> - 원본 텍스트 보기 -
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to