Re: [Puppet-dev] Host file replaced

2016-10-05 Thread Rob Nelson
You're specifically looking for a resource called `resources` with the title `host`, as shown at http://www.puppetcookbook.com/posts/remove-all-unmanaged-host-entries.html. More info at https://docs.puppet.com/puppet/latest/reference/type.html#resources Rob Nelson rnels...@gmail.com On Wed, Oct

Re: [Puppet-dev] Host file replaced

2016-10-05 Thread Aditya Gupta
Thanks for the answer. I am using standard puppet resource type: https://docs.puppet.com/puppet/latest/reference/types/host.html and i can not see support of purge parameter in it. On Wednesday, October 5, 2016 at 12:44:38 PM UTC+5:30, Craig Dunn wrote: > > > > On Wed, Oct 5, 2016 at 12:24 AM,

Re: [Puppet-dev] Host file replaced

2016-10-05 Thread Craig Dunn
On Wed, Oct 5, 2016 at 12:24 AM, Aditya Gupta wrote: > Hello All, > I am using host resources in my puppet class to manage hosts file of the > client. > > I am facing one issue where if I have already connected client to the > puppet server where hosts file have its own entries as well as entries

[Puppet-dev] Host file replaced

2016-10-04 Thread Aditya Gupta
Hello All, I am using host resources in my puppet class to manage hosts file of the client. I am facing one issue where if I have already connected client to the puppet server where hosts file have its own entries as well as entries defined by puppet server . But whenever I replaced my hosts fi