Puppet How can i remove all the node entries that are no longer managed by puppet

0 votes
Aug 9, 2019 in Puppet by Namik
• 1,230 points
739 views

1 answer to this question.

0 votes

You could try this:

class remove_unmanaged {
  # always test with noop first!
  resources { 'host':
    purge => true,
    noop  => true,
  }
  # remove ALL unmanaged host resources
  resources { 'host': purge => true }
}

This would ensure that all unmanaged entries are removed.

answered Aug 9, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

How can i know the time as to when exactly did a node join puppet?

Puppet does not itself keep any timestamp ...READ MORE

answered Aug 8, 2019 in Puppet by Sirajul
• 59,230 points
724 views
0 votes
1 answer
0 votes
1 answer

How do I sign all the certificates together - Puppet on Ubuntu

Hey @Aryaa, use the following command to ...READ MORE

answered Feb 21, 2019 in Puppet by Adi
705 views
0 votes
1 answer

What are the problems that are overcome by using Puppet?

I've used puppet for configuration management the ...READ MORE

answered Mar 5, 2019 in Puppet by Yesha
750 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer

Puppet: How can i connect the puppet server to an external node classifier?

You need to configure two settings to ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 59,230 points
1,059 views
0 votes
1 answer

Can i install puppet master and puppet agent on the same centos machine? How will that work?

Yes, It's now possible to install both ...READ MORE

answered Aug 6, 2019 in Puppet by Sirajul
• 59,230 points
1,134 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP