Where should the testing files be located to run puppet-parser-validate/puppet-lint against *.pp in a Jenkins+Puppet setup?

0 votes
I need to run puppet-parser-validate, and puppet-lint on my existing puppet infrastructure, aboard I actually have a Jenkins server and have organized a Jenkins job that is triggered by a gitlab push.
The project structure is as follows:
puppet
--certs
--environments
----beta0-10
----production
----staging
--json
--manifests
--modules
----builds
----master
----node
--scripts
I have no idea as to where the testing files should be located to run puppet-parser-validate/puppet-lint against *.pp. Can somebody please help me with this?
Aug 8 in Puppet by anonymous
• 1,780 points
23 views

1 answer to this question.

0 votes
  • Rake is sophisticated test runner written in Ruby and is a standard way of running test. You can do it with help of systems such as Rake. 

  • You can see example of Rake files when you generate new Puppet module with puppet module generate companyname-modulename command. 

  • In root directory of your project you will find Rakefile where you will see default configuration. 

  • In default configuration you can see that validation task is already done and ready to use. Just make sure that paths are all good.

  • To run validation task you need to make sure that gems mentioned in Gemfile are installed. You can do it with bundle install

  • To run validation task just run bundle exec rake validate.

    Source: StackOverflow.

answered Aug 8 by Sirajul
• 25,220 points

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
107 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 in Puppet by Sirajul
• 25,220 points
37 views
0 votes
1 answer
0 votes
1 answer

List a few scenarios where Puppet could be used?

Here are a few scenarios where Puppet ...READ MORE

answered Jul 26 in Puppet by Sirajul
• 25,220 points
20 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
147 views
0 votes
1 answer
0 votes
1 answer

How to change the run interval in puppet?

To check the run interval run the following ...READ MORE

answered Jul 29 in Puppet by Sirajul
• 25,220 points
21 views