Comments (9)
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.
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.
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.
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.
What this code is supposed to do is:
- Facter is supposed to get a list of the currently installed jenkins plugins.
- The if on L51 searches the array of installed plugins, and makes sure the one you've requested isn't installed already.
- 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.
@matthewbarr my PR does as you suggest.
from puppet-jenkins.
@neoice can you confirm #76 fixes this issue?
from puppet-jenkins.
% 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.
Someone with permissions close this issue. @matthewbarr @neoice or other?
from puppet-jenkins.
Related Issues (20)
- Plugin download / installation not idempotent HOT 1
- Add a way to set the open files limit in systemd service HOT 1
- Error HOT 1
- Error HOT 1
- Support: casc HOT 1
- Jenkins is no longer forking (--daemon has been removed) HOT 2
- Does no longer work with jenkins 2.332.1 or 2.335 onwards
- Support for Jenkins < 2.332 HOT 1
- Fact 'jenkins_plugins' can exceed value length limit: 4096 HOT 2
- Convert Terminology to match current Jenkins Terminology
- Puppet removes plugin when plugin was installed using the Jenkins ui
- How to install jenkins on a mounted partition HOT 1
- Jenkins not installing on Centos 7 due to gpg key HOT 5
- function hiera_array is deprecated HOT 2
- Puppet enterprise error line 425 Could not find class ::java HOT 1
- Jenkins Redhat repo certificate has expired HOT 2
- undefined method strip HOT 8
- jenkins_plugins fact is locale-dependent which can cause a plugin installation loop HOT 2
- jenkins-cli.jar has been renamed in the jenkins rpm. HOT 6
- jenkins present.pp does not fix single-quotes for xml 1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-jenkins.