Skip to content

Commit 62fc60b

Browse files
committed
Use standard java recipe instead of jenkins::java
1 parent d4f4940 commit 62fc60b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

attributes/master.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
default['s3']['downloads']['host'] = "downloads.typesafe.com.s3.amazonaws.com"
1010

1111
if node.name == "jenkins-master"
12+
# JAVA
13+
default['java']['jdk_version'] = '7'
14+
default['java']['install_flavor'] = 'openjdk'
15+
1216
# JENKINS
1317
override['jenkins']['master']['install_method'] = 'war'
1418
override['jenkins']['master']['listen_address'] = '127.0.0.1' # external traffic must go through nginx

recipes/_master-init-jenkins.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
# All rights reserved - Do Not Redistribute
88
#
99

10-
# The jenkins cookbook comes with a very simple java installer. If you need more
11-
# complex java installs you are on your own.
12-
# https://github.com/opscode-cookbooks/jenkins#java
13-
include_recipe 'jenkins::java'
1410
include_recipe 'jenkins::master'
1511

1612
# recursive doesn't set owner correctly??

recipes/master-init.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
chef_gem "chef-vault"
1212

13+
include_recipe "java"
14+
1315
include_recipe "scala-jenkins-infra::_master-init-jenkins"
1416

1517

0 commit comments

Comments
 (0)