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,210 points
73 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
• 57,760 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
• 57,760 points
64 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
117 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
62 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
669 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
• 57,760 points
166 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
• 57,760 points
148 views