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

0 votes
Aug 9 in Puppet by Namik
• 1,200 points
21 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 by Sirajul
• 31,980 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 in Puppet by Sirajul
• 31,980 points
26 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 in Puppet by Adi
53 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 in Puppet by Yesha
19 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
186 views
0 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 in Puppet by Sirajul
• 31,980 points
36 views
0 votes
1 answer