0

I am trying to find out a way to install Jenkins plugin using puppet. I would like to create a Gerrit patch then to install it and to revert the patch in case it is required. Is this achievable ?

--> Basically want to create a procedure to both upgrade and downgrade plugin
-->Manage Plugin install/upgrade using puppet
devops
  • 944
  • 2
  • 13
  • 35

1 Answers1

2

The jenkins module supports plugins:

https://github.com/jenkinsci/puppet-jenkins/blob/master/manifests/plugin.pp

You can roll back and remove the plugin with ensure => absent or version => <version

Here's an example:

jenkins::plugin {
  'ansicolor' :
   version => '0.3.1';
}
jaxxstorm
  • 9,531
  • 3
  • 39
  • 50
  • Thanks ... This module will take care of plugin dependencies as well ? – devops Dec 15 '16 at 16:08
  • No, you'll have to manage those separately. I would recommend wrapping your plugins in a profile and then chaining them using the chaining resource. – jaxxstorm Dec 16 '16 at 12:09