Giter VIP home page Giter VIP logo

pietervogelaar / chef-cookbook-jenkins-server Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 13.0 116 KB

This cookbook installs a complete Jenkins server with plugins and is highly configurable with attributes in this cookbook. It configures settings, plugins, security and slaves. It also installs (can be disabled) the Jenkins plugins, php-template job and required PHP tools as described on http://jenkins-php.org.

Home Page: https://supermarket.chef.io/cookbooks/jenkins-server

License: MIT License

Ruby 52.80% HTML 47.20%

chef-cookbook-jenkins-server's People

Contributors

pietervogelaar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chef-cookbook-jenkins-server's Issues

Jenkins package not available on Ubuntu 14.04

As per attributes/jenkins.rb, this cookbook attempts to use a jenkins package version of '1.642-1.1' through the following attribute:

default['jenkins']['master']['version']

The underlying cookbook, jenkins, specifies a URL of http://pkg.jenkins-ci.org/debian/ for the debian family in it's own attributes/master.rb, however visiting the above URL shows that there is not a package that matches the version specified as the default value of the attribute - '1.642-1.1'. This cookbook fails to converge for me on Ubuntu 14.04 unless the above attribute is manually overridden to a value that matches a package version at the above URL.

plugin.rb: Option cookbook must be a kind of [String]! You passed :"jenkins-server"

I'm seeing a error. Looks to be type mismatch.
My setup is very simple, a recipe with only:

include_recipe 'jenkins-server::default'

and no node attributes as yet set.

==> default: Recipe Compile Error in /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/stashykins/recipes/default.rb
==> default:
==> default: ================================================================================
==> default:
==> default:
==> default:
==> default:
==> default: Chef::Exceptions::ValidationFailed
==> default:
==> default: ----------------------------------
==> default:
==> default: Option cookbook must be a kind of [String]!  You passed :"jenkins-server".
==> default:
==> default:
==> default:
==> default:   Cookbook Trace:
==> default:   ---------------
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:34:in `block (2 levels) in from_file'
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:33:in `block in from_file'
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:7:in `each'
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:7:in `from_file'
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/default.rb:19:in `from_file'
==> default:     /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/stashykins/recipes/default.rb:10:in `from_file'
==> default:
==> default:   Relevant File Content:
==> default:   ----------------------
==> default:   /tmp/vagrant-chef/6e041c8bd39ee7074737ecc884d8b309/cookbooks/jenkins-server/recipes/plugins.rb:
==> default:
==> default:    27:          template_path = options['template_path']
==> default:    28:        else
==> default:    29:          template_path = "#{plugin}.xml"
==> default:    30:        end
==> default:    31:
==> default:    32:        if has_template?(template_source, template_cookbook)
==> default:    33:          template "#{node['jenkins']['master']['home']}/#{template_path}" do
==> default:    34>>           cookbook template_cookbook
==> default:    35:            source template_source
==> default:    36:            mode '0644'
==> default:    37:            owner node['jenkins']['master']['user']
==> default:    38:            group node['jenkins']['master']['group']
==> default:    39:            action :create
==> default:    40:          end
==> default:    41:        else
==> default:    42:          Chef::Log.debug "No template found for source \"#{template_source}\" in cookbook \"#{template_cookbook}\""
==> default:    43:        end
==> default:
==> default:
==> default:   Running handlers:
==> default: [2015-12-11T01:08:33+00:00] ERROR: Running exception handlers
==> default:   Running handlers complete
==> default: [2015-12-11T01:08:33+00:00] ERROR: Exception handlers complete
==> default:   Chef Client failed. 1 resources updated in 05 seconds
==> default: [2015-12-11T01:08:33+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-12-11T01:08:33+00:00] ERROR: Option cookbook must be a kind of [String]!  You passed :"jenkins-server".
==> default: [2015-12-11T01:08:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

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.