Skip to content

Commit

Permalink
install maven on workers
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanm committed Jan 27, 2015
1 parent c8018e2 commit 9fe08ed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions files/default/epel-apache-maven.repo.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[epel-apache-maven]
name=maven from apache foundation.
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-7Server/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0

[epel-apache-maven-source]
name=maven from apache foundation. - Source
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-7Server/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
2 changes: 1 addition & 1 deletion recipes/_worker-init-debian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

include_recipe "java"

%w{ant ant-contrib ant-optional}.each do |pkg|
%w{ant ant-contrib ant-optional maven}.each do |pkg|
package pkg
end
7 changes: 6 additions & 1 deletion recipes/_worker-init-rhel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
# JAVA_HOME=/usr/lib/jvm/java implies there must be a /usr/lib/jvm-exports/java, which is not created by the oracle rpm
directory '/usr/lib/jvm-exports/java'

%w{ant ant-contrib ant-junit}.each do |pkg|
cookbook_file "epel-apache-maven.repo.erb" do
owner 'root'
path "/etc/yum.repos.d/epel-apache-maven.repo"
end

%w{ant ant-contrib ant-junit apache-maven}.each do |pkg|
package pkg
end

0 comments on commit 9fe08ed

Please sign in to comment.