Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

archiva (3) Versions 1.1.0

Installs/Configures Archiva

Berkshelf/Librarian
Policyfile
Knife
cookbook 'archiva', '~> 1.1.0'
cookbook 'archiva', '~> 1.1.0', :supermarket
knife cookbook site install archiva
knife cookbook site download archiva
README
Dependencies
Changelog
Quality 78%

archiva cookbook

Cookbook Version Build Status Coverage Status

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>

<tr>
  <td><code>[:archiva][:version]</code></td>
  <td>string</td>
  <td>the version of Archiva to install</td>
  <td><code>2.1.1</code></td>
</tr>

<tr>
    <td><code>[:archiva][:checksum]</code></td>
    <td>string</td>
    <td>SHA512 checksum used by Ark</td>
    <td><code>b517a93c8e1d5825adb738d091c8a55b9bcfd0200286d9c403b58f88a67c4aab</code></td>
</tr>

<tr>
    <td><code>[:archiva][:install_path]</code></td>
    <td>string</td>
    <td>Path for Ark to install Archiva to</td>
    <td><code>/opt/</code></tr>
</td>

<tr>
    <td><code>[:archiva][:home]</code></td>
    <td>string</td>
    <td>Where Archiva will be upon installation</td>
    <td><code>/opt/archiva</code></td>
</tr>

<tr>
    <td><code>[:archiva][:user_owner]</code></td>
    <td>string</td>
    <td>Owner of Archiva</td>
    <td><code>root</code></td>
</tr>

<tr>
    <td><code>[:archiva][:web_host]</code></td>
    <td>string</td>
    <td>Hostname for Archiva; used for Nginx</td>
    <td><code>127.0.0.1</code></td>
</tr>

<tr>
    <td><code>[:archiva][:web_port]</code></td>
    <td>string</td>
    <td>Port that Archiva listens on</td>
    <td><code>8080</code></td>
</tr>

<tr>
    <td><code>[:archiva][:web_domain]</code></td>
    <td>string</td>
    <td>Server name used by Nginx</td>
    <td><code>archiva.example.com</code></td>
</tr>

<tr>
    <td><code>[:archiva][:web_template]</code></td>
    <td>string</td>
    <td>Portion of template filename for Nginx</td>
    <td><code>default</code></td>
</tr>

<tr>
    <td><code>[:archiva][:nginx]</code></td>
    <td>string</td>
    <td>The <code>nginx</code> cookbook recipe to use</td>
    <td><code>default</code></td>
</tr>

<tr>
    <td><code>[:archiva][:nginx_uri]</code></td>
    <td>string</td>
    <td>The Nginx server location</td>
    <td><code>/</code></td>
</tr>

<tr>
    <td><code>[:archiva][:nginx_port]</code></td>
    <td>string</td>
    <td>Nginx virtual host listen port</td>
    <td><code>80</code></td>
</tr>

</table>

Usage

  • Add archiva::default to a node’s run list
  • Add archiva::nginx_proxy to a run list to include archiva::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'

Contributing

See CONTRIBUTING.MD

License and Authors

Author:: EverTrue, Inc. devops@evertrue.com
Author:: Jorge Espada espada.jorge@gmail.com

License:: Apache License v2.0

Dependent cookbooks

nginx ~> 2.7
java ~> 1.27
ark >= 0.0.0
apt ~> 2.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

archiva CHANGELOG

This is the changelog for the archiva cookbook.

v1.1.0 (2016-03-21)

  • Add node[:archiva][:mirror] attribute to allow operator to customize where Archiva is downloaded from
  • Refactor test harness to work well in Travis & do integration testing

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

Collaborator Number Metric
            

1.1.0 passed this metric

Contributing File Metric
            

1.1.0 passed this metric

Foodcritic Metric
            

1.1.0 passed this metric

License Metric
            

1.1.0 failed this metric

archiva does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

1.1.0 passed this metric

Publish Metric
            

1.1.0 passed this metric

Supported Platforms Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.1.0 passed this metric