How to check the syntax of Puppet DSL code

0 votes

Hi Team,

I have written one Puppet DSL file. I want to check the syntax of this file. How to do that?

Dec 31, 2020 in Puppet by akhtar
• 38,230 points
148 views

1 answer to this question.

0 votes

Hi@akhtar,

At the lowest level of checking, you can use the Puppet parser to do syntax validation. If you write any syntax, It will show that error.

$ puppet parser validate site.pp(file name)
answered Dec 31, 2020 by MD
• 95,320 points

Related Questions In Puppet

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, 2019 in Puppet by Sirajul
• 59,110 points
1,373 views
0 votes
1 answer

Puppet: How can i check for syntax errors on my puppet code? Is there any tool to do this?

At the lowest level of checking, you ...READ MORE

answered Aug 7, 2019 in Puppet by Sirajul
• 59,110 points
3,077 views
0 votes
1 answer

How to check the installed modules in puppet?

Puppet Module list command will list all ...READ MORE

answered Jul 24, 2019 in Puppet by Sirajul
• 59,110 points
4,257 views
0 votes
0 answers
+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
1,385 views
+2 votes
1 answer
0 votes
1 answer

How to change the Puppet Server memory allocation?

Hi@akhtar, By default, Puppet Server is configured to ...READ MORE

answered Dec 31, 2020 in Puppet by MD
• 95,320 points
412 views
0 votes
1 answer

How to pull the catalog from the puppet master node?

Hi@akhtar, The puppet agent is configured to run ...READ MORE

answered Dec 31, 2020 in Puppet by MD
• 95,320 points
274 views