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

Select Status

RSS

bamboo-agent (8) Versions 0.7.0

Installs/Configures a bamboo agent

Policyfile
Berkshelf
Knife
cookbook 'bamboo-agent', '~> 0.7.0', :supermarket
cookbook 'bamboo-agent', '~> 0.7.0'
knife supermarket install bamboo-agent
knife supermarket download bamboo-agent
README
Dependencies
Changelog
Quality 17%

Bamboo-agent Cookbook Build Status

A Chef cookbook for managing Bamboo agents.

It can:
- Install multiple agents side-by-side on a node
- Ensure agents are running / started up after a reboot
- Set properties in a agent's wrapper.conf
- Manage agent capabilities

This cookbook is based on the Puppet module: https://github.com/kayakco/puppet-bamboo_agent

Attributes

bamboo-agent::default

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['bamboo-agent']['server']['address']</tt></td>
<td>String</td>
<td>Bamboo server address</td>
<td><tt>localhost</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['server']['protocol']</tt></td>
<td>String</td>
<td>Bamboo server protocol</td>
<td><tt>localhost</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['server']['port']</tt></td>
<td>Integer/String</td>
<td>Bamboo server port</td>
<td><tt>8085</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['install_dir']</tt></td>
<td>String</td>
<td>whether to install bamboo agents</td>
<td><tt>/usr/local/bamboo</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['installer_jar']</tt></td>
<td>String</td>
<td>whether to download the installer</td>
<td><tt>"#{node['bamboo-agent']['install_dir']}/bamboo-agent-installer.jar"</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['user']['name']</tt></td>
<td>String</td>
<td>The username for bamboo agents</td>
<td><tt>bamboo</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['user']['group']</tt></td>
<td>String</td>
<td>The group for bamboo agents</td>
<td><tt>bamboo</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['user']['manage']</tt></td>
<td>Boolean</td>
<td>If the user home must be managed</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['user']['shell']</tt></td>
<td>String</td>
<td>The user shell</td>
<td><tt>/bin/bash</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['capabilities']</tt></td>
<td>Hash</td>
<td>The default capabilities</td>
<td><tt>{}</tt></td>
</tr>
<tr>
<td><tt>['bamboo-agent']['agents']</tt></td>
<td>Hash</td>
<td>Agents to deploy</td>
<td><tt>{}</tt></td>
</tr>
</table>

Usage

bamboo-agent::default

{
  "bamboo-agent": {
    "server": {
      "address": "my-bamboo-url"
    },
    "agents": [
      {"id":"1", "capabilities": {"system.builder.command.Bash": "/bin/bash"}},
      {"id":"2"}
    ]
  },
  "run_list": [
    "recipe[bamboo-agent]"
  ]
}

Running tests

This cookbook use Rake to run tests suites:

  • First install dependencies:

    bundle install

  • Run all checkstyle tests:

    bundle exec rake test:checkstyle

  • Run all rspec tests:

    bundle exec rake test:specs

  • Run all kitchen tests:

    bundle exec rake test:kitchen

  • Run all tests (checkstyle and rspec):

    bundle exec rake test

Available tests suites:

- Knife
- RuboCop
- Foodcritic
- ChefSpec
- Kitchen

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Author Pierre Rambaud pierre.rambaud@numergy.com
Author Antoine Rouyer antoine.rouyer@numergy.com
Copyright Copyright (c) 2014 Numergy

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

yum >= 0.0.0
apt >= 0.0.0
build-essential >= 0.0.0
augeas >= 0.0.0
java >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Bamboo-agent CHANGELOG

This file is used to list changes made in each version of the bamboo-agent cookbook.

0.7.0

0.6.0

  • Update dependencies

0.5.0

  • Missing build-essential cookbook

0.4.0

  • Licensing, and Chefspec matchers

0.3.0

  • Add resource and provider to allow the installation of a agent

0.2.0

  • Debian and CentOs support

0.1.0

  • Initial release of bamboo-agent

Collaborator Number Metric
            

0.7.0 failed this metric

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

Contributing File Metric
            

0.7.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.7.0 failed this metric

FC009: Resource attribute not recognised: bamboo-agent/recipes/download.rb:33
FC064: Ensure issues_url is set in metadata: bamboo-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: bamboo-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: bamboo-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: bamboo-agent/metadata.rb:1
FC074: LWRP should use DSL to define resource's default action: bamboo-agent/resources/install.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: bamboo-agent/providers/install.rb:135
FC121: Cookbook depends on cookbook made obsolete by Chef 14: bamboo-agent/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: bamboo-agent/recipes/default.rb:30
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.7.0 passed this metric

Testing File Metric
            

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