Puppet and Jenkins integration

0 votes

I have a requirement to run puppet-parser-validate, and puppet-lint on my existing puppet infrastructure. I have a Jenkins Job that is triggered on code push to the git repository. The project structure is as follows:

puppet
--certs
--environments
----beta0-10
----production
----staging
--json
--manifests
--modules
----builds
----master
----node
--scripts

Where should I include the testing files to run puppet-pareser-validate/puppet-lint against anything that ends with .pp ('*.pp') while utilising a jenkins server. Can somebody help me with this?

Aug 29, 2019 in Puppet by Liana
572 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. Make sure that paths are set accurately.

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
answered Aug 29, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Puppet and Jenkins : Adding Jenkins slaves using puppet code.

You can automatically add slaves to jenkins, ...READ MORE

answered Aug 28, 2019 in Puppet by Sirajul
• 59,230 points
1,353 views
0 votes
1 answer

Puppet and Jenkins: Installing Jenkins plugins and dependencies.

The Jenkins puppet module defines the jenkins::plugin resource which ...READ MORE

answered Aug 28, 2019 in Puppet by Sirajul
• 59,230 points
1,864 views
+1 vote
1 answer

Steps to trigger puppet agent from jenkins

Heyy @Hannah,  First, you need to create Jenkins slave, ...READ MORE

answered Dec 16, 2018 in Puppet by Kiyara
3,970 views
0 votes
1 answer
+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
4,035 views
+2 votes
1 answer
0 votes
1 answer

Puppet and Jenkins: How can I manage Jenkins job using Puppet DSL?

Managing Jenkins jobs: Build jobs can be managed ...READ MORE

answered Aug 28, 2019 in Puppet by Sirajul
• 59,230 points
765 views
0 votes
1 answer

Puppet and Jenkins: How does Puppet manage Jenkins security?

Jenkins security is not managed by puppet ...READ MORE

answered Aug 28, 2019 in Puppet by Sirajul
• 59,230 points
707 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP