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

asgard (2) Versions 0.1.0

Installs/Configures Netflix Asgard with Tomcat and Apache

Berkshelf/Librarian
Policyfile
Knife
cookbook 'asgard', '~> 0.1.0'
cookbook 'asgard', '~> 0.1.0', :supermarket
knife cookbook site install asgard
knife cookbook site download asgard
README
Dependencies
Quality

Description

Installs and configures Netflix Asgard under Tomcat.

Can also proxy via Apache.

Requirements

  • Chef 0.9.x+

Platforms

Supported on:

  • CentOS, Red Hat, Fedora

Tested on:

  • CentOS 6.3-6.4
  • Chef 0.9.14, 10.14.2

Dependencies

The following cookbooks are dependencies:

You must host your own copies of:

  • Asgard war
  • JDK

Recipes

  • asgard::server
    • Installs Asgard with Tomcat 7
  • asgard::apache
    • Install Asgard with Tomcat 7 and Apache as a proxy

Attributes

Required Attributes

  • default["asgard"]["war"]["url"]
    • URL for downloading Asgard war file. Must be hosted privately because Netflix uses Box to host the binaries.
  • default["asgard"]["war"]["checksum"]
    • SHA-256 checksum of the Asgard war file.
  • default["asgard"]["aws"]["accounts"]
    • Array of AWS account numbers for Asgard to use.
  • default["asgard"]["aws"]["accountNames"]
    • Hash that maps AWS account numbers to human readable names for display within Asgard.
  • default["asgard"]["aws"]["accessId"]
    • AWS account id that Asgard should use for AWS operations.
  • default["asgard"]["aws"]["secretKey"]
    • AWS secret key
  • default["asgard"]["cloud"]["accountName"]
    • Name of the primary AWS account. Should match entry in asgard.aws.accountNames.
  • default["java"]["jdk"]["6"]["x86_64"]["url"]
    • URL for downloading JDK 6 tar gzip file. Must be hosted privately. Cannot download from Oracle without a browser.
  • default["java"]["jdk"]["6"]["x86_64"]["checksum"]
    • SHA-256 checksum for the JDK

Apache Attributes

You only need this if you include the asgard::apache recipe.

  • default["asgard"]["apache"]["server"]["admin"]
    • Email address for the Apache administrator
  • default["asgard"]["apache"]["server"]["name"]
    • Name of the Asgard server
  • default["asgard"]["apache"]["server"]["aliases"]
    • Array of aliases for the Asgard server

Usage

Add something like the following to your recipe or role:

node['java']['jdk']['6']['x86_64']['url'] = 'http://example.com/jdk-6u41-linux-x64.tar.gz'
node['java']['jdk']['6']['x86_64']['checksum'] = 'd54749ac1ae3dad19643aa38d54aec1b4d8f6268e06edb744d6864d9eb8a8f31'
node["asgard"]["war"]["url"] = "http://example.com/asgard-1.1.war"
node["asgard"]["war"]["checksum"] = "207124a5127c7b9a4a7f522298935d5e595b558bbdcfba1a9c3c74c22032ac51"

node["asgard"]["aws"]["accounts"] = %w{1234567890}
node["asgard"]["aws"]["accountNames"] = { '1234567890' => "development" }
node["asgard"]["aws"]["accessId"] = "ACCESS_ID"
node["asgard"]["aws"]["secretKey"] = "SECRET_KEY"
node["asgard"]["cloud"]["accountName"] = "development"

node["asgard"]["apache"]["server"]["admin"] = "asgard@example.com"
node["asgard"]["apache"]["server"]["name"] = "asgard.example.com"
node["asgard"]["apache"]["server"]["aliases"] = [ node.name ]

include_recipe "asgard::apache"

The process will install Tomcat 7:

  • /opt/tomcat/
  • /opt/tomcat/tomcat-7/
  • /opt/tomcat/default/

And it will install Asgard as a separate Tomcat instance with an init script:

  • /opt/tomcat/asgard/
  • /opt/tomcat/asgard/.asgard/
  • /opt/tomcat/asgard/.asgard/Config.groovy/
  • /etc/default/asgard
  • /etc/init.d/asgard

If you use the optional asgard::apache recipe, it will also install Apache and setup a Virtual Host definition to proxy requests from port 80 to Tomcat Asgard on port 8080:

  • /etc/httpd/sites-enabled/asgard.conf

License

  • Author: Sean Laurent
  • Copyright: 2013 StudyBlue, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

tomcat >= 0.0.0
java >= 0.0.0
apache2 >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.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 CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC043: Prefer new notification syntax: asgard/recipes/apache.rb:51
FC043: Prefer new notification syntax: asgard/recipes/apache.rb:60
FC064: Ensure issues_url is set in metadata: asgard/metadata.rb:1
FC065: Ensure source_url is set in metadata: asgard/metadata.rb:1
FC066: Ensure chef_version is set in metadata: asgard/metadata.rb:1
FC069: Ensure standardized license defined in metadata: asgard/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: asgard/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 failed this metric

Failure: Cookbook should not contain binaries. Found:
asgard/README.md

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.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
            

0.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 include a tag that matches this cookbook version number