How can i avoid the "environment leakage" in puppet?

0 votes
Is there any way i can avoid leakages in the puppet environment?
Jul 25 in Puppet by Sam
• 4,320 points
36 views

1 answer to this question.

0 votes

Environment leakage is one of the limitations of puppet environments.

Use one of the following methods to avoid environmental leakage:

  • For resource types, you can avoid environment leaks with the the puppet generate types command. This command generates resource type metadata files to ensure that each environment uses the right version of each type.

  • This issue occurs only with the Puppet::Parser::Functions API. To fix this, rewrite functions with the modern functions API, which is not affected by environment leakage. You can include helper code in the function definition, but if helper code is more complex, it should be packaged as a gem and installed for all environments.

  • Report processors and indirector termini are still affected by this problem, so put them in your global Ruby directories rather than in your environments. If they are in your environments, you must ensure they all have the same content.

answered Jul 25 by Sirajul
• 38,820 points

Related Questions In Puppet

0 votes
1 answer

Can I access environment variables with Facter in Puppet?

Hey @Ruth, not directly. However, Facter reads ...READ MORE

answered Feb 15 in Puppet by Krishti

edited Feb 15 426 views
0 votes
1 answer
0 votes
1 answer
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
• 38,820 points
29 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
216 views
0 votes
1 answer
0 votes
1 answer

How can i check the requests of certificates from puppet agent to puppet master?

You could do this by executing the ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 38,820 points
89 views
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
• 38,820 points
47 views