Hi,
  Add purge => true in your file resouce.
You can try this :->
file {"/etc/nginx/":
source => "puppet:///files/nginx/nginx/",
ensure => "directory",
recurse => true,
purge => true,
require => Package['nginx'],
}
This will manage the deletion of files on client if you delete file on
server.

Thanks & Regards,
Sneha More,
NTT DATA GTS, OSS Center, India (Pune).


On Tue, Sep 24, 2013 at 6:22 PM, AAB !! <adeelarifbha...@gmail.com> wrote:

> Thanks for reply !
> Could you/anyone tell me if a file gets deleted on the puppet master why
> does it still appear on the puppet agent, only this delete operation
> doesn't seems be  executing !!
> Any ideas ?
>
>
> On Tuesday, September 24, 2013 10:02:44 AM UTC+2, AAB !! wrote:
>
>> Hi,
>>  I have two issues with my puppet.
>> *1*- When I change the config the service on the agent side implement
>> the configuration change but the restart/reload gets scheduled and after 15
>> or 20 minutes it is executed, however the agent time to get conffig from
>> server is 180 seconds. Followings are the logs
>> *(/Stage[main]/Nginx/Service[nginx]) Triggered 'refresh' from 2 events*
>> *Finished catalog run in 1089.33 seconds*
>> *
>> *
>> *
>> *
>> file {"/etc/nginx/":
>> source => "puppet:///files/nginx/nginx/"**,
>> recurse => true,
>> ensure => "present",
>> require => Package['nginx'],
>> }
>> The configuration is as follow.
>> service {'nginx':
>> ensure=>running,
>> restart=> "/etc/init.d/nginx reload",
>> subscribe=>File["/etc/nginx/"]**,
>> }
>>
>> *2*- And one more issue is if someone opens the file and edit it on the
>> puppet server (if editing takes longer time), then sometimes the .swp file
>> gets copied to puppet agent machine !!
>> Does anyone have the solutions for these problems !
>>
>>
>>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/MSY0039f1pc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to