Giter Club home page Giter Club logo

Comments (9)

matthewbarr avatar matthewbarr commented on May 26, 2024

Well, if you'd like to fix it, feel free :) (hint, use a before attribute on the exec resource.)

Else, i'll fix it when i have time soon.

from puppet-jenkins.

neoice avatar neoice commented on May 26, 2024

honestly, I find this Puppet code pretty intimidating or I probably would have hacked up a pull request. I'm not terribly familiar with the stdlib functions or the create_resource idiom :/

from puppet-jenkins.

matthewbarr avatar matthewbarr commented on May 26, 2024

OK, I was remembering the original code I wrote for this, vs the new shiny code that @jchristi wrote.

Can you give me the way you're calling this? are you just including jenkins::master?
What about the output of facter -p|grep jenkins_plugins

from puppet-jenkins.

neoice avatar neoice commented on May 26, 2024

I just have a simple wrapper class (example_jenkins::master) applied to my host. we maintain our own java module, but it looks like setting install_java to false makes those calls get skipped. if needed, I can test with the puppetlabs-java module too.

# hiera data
---
jenkins::install_java: false
jenkins::swarm_version: 1.9

# example_jenkins::master.pp
class example_jenkins::master {
  # we have our own java class
  include 'java::example'
  include 'jenkins'
  include 'jenkins::master'
}

# facter output
root@uber-jenkins:~# facter -p|grep jenkins_plugins
jenkins_plugins => credentials 1.9.3, mailer 1.6, subversion 1.54, ldap 1.6, translation 1.10, swarm 1.9, javadoc 1.1, ssh-slaves 1.5, external-monitor-job 1.2, cvs 2.11, ssh-credentials 1.6, pam-auth 1.1, matrix-auth 1.1, maven-plugin 2.1, ant 1.2,

from puppet-jenkins.

matthewbarr avatar matthewbarr commented on May 26, 2024

What this code is supposed to do is:

  1. Facter is supposed to get a list of the currently installed jenkins plugins.
  2. The if on L51 searches the array of installed plugins, and makes sure the one you've requested isn't installed already.
  3. And... the issue is that the exec may not be there, as you said. Might be best to just move the File resource into the if. Basically, we'd only do the exec & file if the plugin isn't installed already with the right version.

from puppet-jenkins.

jchristi avatar jchristi commented on May 26, 2024

@matthewbarr my PR does as you suggest.

from puppet-jenkins.

jchristi avatar jchristi commented on May 26, 2024

@neoice can you confirm #76 fixes this issue?

from puppet-jenkins.

neoice avatar neoice commented on May 26, 2024
% git remote -v
origin  https://github.com/jchristi/puppet-jenkins (fetch)
origin  https://github.com/jchristi/puppet-jenkins (push)
commit 73fc86cb7a4deea43d1312839f1afe38648129d3

all my nodes are green :)

from puppet-jenkins.

jchristi avatar jchristi commented on May 26, 2024

Someone with permissions close this issue. @matthewbarr @neoice or other?

from puppet-jenkins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.