This cookbook installs Apache Archiva 2.2.4 standalone.
ark
java
nginx
- If the
nginx_proxy
recipe is not used, nginx won’t be installed
- If the
Key | Type | Description |
---|---|---|
['archiva']['version'] |
string | the version of Archiva to install |
['archiva']['checksum'] |
string | SHA512 checksum used by Ark |
['archiva']['install_path'] |
string | Path for Ark to install Archiva to |
['archiva']['home'] |
string | Where Archiva will be upon installation |
['archiva']['user_owner'] |
string | Owner of Archiva |
['archiva']['web_host'] |
string | Hostname for Archiva; used for Nginx |
['archiva']['web_port'] |
string | Port that Archiva listens on |
['archiva']['web_domain'] |
string | Server name used by Nginx |
['archiva']['web_template'] |
string | Portion of template filename for Nginx |
['archiva']['nginx'] |
string | The nginx cookbook recipe to use |
['archiva']['nginx_uri'] |
string | The Nginx server location |
['archiva']['nginx_port'] |
string | Nginx virtual host listen port |
Either:
- Add
archiva::default
to a node’s run list
Or:
- Add
archiva::nginx_proxy
to a run list to includearchiva::default
, which installs NGINX & sets it to handle proxing requests to Archiva
Should you wish to customize this cookbook’s behavior, the recommendation is to follow The Berkshelf Way and write a wrapper cookbook for this one.
You would then include this cookbook’s recipe(s) in your wrapper cookbook, setting attributes in whatever fashion makes sense for your use case.
E.g.,
# attributes/default.rb
override['java']['java_home'] = '/usr/lib/jvm/java-7-openjdk-amd64'
override['java']['java_exec'] = node['java']['java_home'] + '/bin/java'
override['java']['jdk_version'] = '7'
override['archiva']['nginx_uri'] = '/archiva/'
override['archiva']['nginx_port'] = '8080'
override['archiva']['web_host'] = 'localhost'
override['archiva']['web_port'] = '9090'
# recipes/default.rb
include_recipe 'archiva'
include_recipe 'archiva::nginx_proxy'
See CONTRIBUTING.MD
Author:: Jeff Byrnes [email protected]
Author:: Eric Herot [email protected]
Author:: Ed Hurtig [email protected]
Author:: Jorge Espada [email protected]
License:: Apache License v2.0