Skip to content

bmierzejewski/puppet-nexus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexus Puppet module

Requires

  • curl module
  • unzip package
  • openjdk-7-jre-headless package or similar

Quickstart

package { ['curl', 'unzip']: ensure => present } 
class { tomcat: version => 6 }
include nexus

Use Your Own Mirror

class { nexus:
  mirror_url => 'http://33.33.33.1:8080/nexus/content/groups/public/com/sonatype/nexus/2.0/'
}

(yes, you can serve Nexus from Nexus) ;-)

Or from local file:

class { nexus:
  mirror_url => 'file:///together/Technology/Project_Management/Nexus/'
}

Advanced Configuration

Usually you’ll do something like this:

package { unzip: ensure => present }
class { tomcat:
  version => 6,
  java_home => '/usr/lib/jvm/java-1.7.0-openjdk-amd64',
}
class { nexus:
  mirror_url => 'http://33.33.33.1:8080/nexus/content/groups/public/com/sonatype/nexus/2.0/'
}
# TODO: Below is not working, it should actually
# do a normal (non-vhost) reverse proxy at "/nexus"
apache::vhost::proxy { "nexus.satukancinta.vm":
	port => 80,
	dest => 'http://localhost:8080/nexus/',
}

About

Puppet module for Sonatype Nexus Maven Repository Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Puppet 84.9%
  • Ruby 15.1%