license 'Apache 2.0'
description 'Installs/Configures jenkins-grid'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '0.2.2'
+version '0.2.3'
source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git'
issues_url 'https://osdn.jp/projects/metasearch/ticket'
# Cookbook Name:: jenkins-grid
# Recipe:: docker-compose
#
-# Copyright 2016, whitestar
+# Copyright 2016-2017, whitestar
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
end
}
+ports = config['services']['jenkins']['ports']
+override_config['services']['jenkins']['ports'] = ['8080:8080', '50000:50000'] if ports.empty?
+
jenkins_owner = node['jenkins-grid']['docker-compose']['jenkins_home']['owner']
jenkins_home_path = node['jenkins-grid']['docker-compose']['jenkins_home']['path']
unless jenkins_home_path.nil?