cookbook 'archiva', '= 1.0.1'
archiva (5) Versions 1.0.1 Follow1
Installs/Configures Archiva
cookbook 'archiva', '= 1.0.1', :supermarket
knife supermarket install archiva
knife supermarket download archiva
archiva cookbook
This cookbook installs Apache Archiva 2.1.1 standalone.
Requirements
ark
java
-
nginx
- If the nginx_proxy recipe is not used, nginx won’t be installed
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
[:archiva][:version]
string
the version of Archiva to install
2.1.1
[:archiva][:checksum]
string
SHA512 checksum used by Ark
b517a93c8e1d5825adb738d091c8a55b9bcfd0200286d9c403b58f88a67c4aab
[:archiva][:install_path]
string
Path for Ark to install Archiva to
/opt/
[:archiva][:home]
string
Where Archiva will be upon installation
/opt/archiva
[:archiva][:user_owner]
string
Owner of Archiva
root
[:archiva][:web_host]
string
Hostname for Archiva; used for Nginx
127.0.0.1
[:archiva][:web_port]
string
Port that Archiva listens on
8080
[:archiva][:web_domain]
string
Server name used by Nginx
archiva.example.com
[:archiva][:web_template]
string
Portion of template filename for Nginx
default
[:archiva][:nginx]
string
The nginx
cookbook recipe to use
default
[:archiva][:nginx_uri]
string
The Nginx server location
/
[:archiva][:nginx_port]
string
Nginx virtual host listen port
80
</table>
Usage
- Add
archiva::default
to a node’s run list - Add
archiva::nginx_proxy
to a run list to includearchiva::default
, then install Nginx & have it handle proxing requests to Archiva
Wrapping this cookbook
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 set[:java][:java_home] = '/usr/lib/jvm/java-7-openjdk-amd64' set[:java][:java_exec] = node[:java][:java_home] + '/bin/java' set[:java][:jdk_version] = '7' set[:archiva][:nginx_uri] = '/archiva/' set[:archiva][:nginx_port] = '8080' set[:archiva][:web_host] = 'localhost' set[:archiva][:web_port] = '9090' # recipes/default.rb include_recipe 'archiva' include_recipe 'archiva::nginx_proxy'
Dependent cookbooks
apt ~> 2.5 |
ark >= 0.0.0 |
java ~> 1.27 |
nginx ~> 2.7 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
archiva CHANGELOG
This is the changelog for the archiva cookbook.
v1.0.1 (2015-03-13)
- Reload nginx when archiva_server.conf changes
v1.0.0 (2014-09-24)
- Refactored to install Archiva ≥ 2.1.1
- Fixed up metadata
- Addded Berkshelf support
- Added ChefSpec unit tests
- Added Test Kitchen
- Added ServerSpec integration tests
- Wired up to Travis CI for all tests
- Wired up to Coveralls.io for unit test coverage
v0.0.1 (2014-01-10)
- Initial rev
Foodcritic Metric
1.0.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:43
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:39
FC031: Cookbook without metadata file: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/metadata.rb:1
1.0.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:6
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:13
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:14
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/attributes/default.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:43
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/default.rb:46
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/recipes/nginx_proxy.rb:39
FC031: Cookbook without metadata file: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/5b349aaaa4da352bdc967a9f/archiva/metadata.rb:1