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 in Puppet by Liana
16 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 by Sirajul
• 30,540 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 in Puppet by Sirajul
• 30,540 points
20 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 in Puppet by Sirajul
• 30,540 points
89 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
679 views
0 votes
1 answer
+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
180 views
0 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 in Puppet by Sirajul
• 30,540 points
14 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 in Puppet by Sirajul
• 30,540 points
12 views