cookbook 'aws-codedeploy-agent', '~> 0.7.1'
aws-codedeploy-agent (6) Versions 0.7.1 Follow4
Installs/Configures aws-codedeploy-agent
cookbook 'aws-codedeploy-agent', '~> 0.7.1', :supermarket
knife supermarket install aws-codedeploy-agent
knife supermarket download aws-codedeploy-agent
aws-codedeploy-agent Cookbook
Important Note: This cookbook is under development. Contribution is welcome!
Install AWS aws-codedeploy-agent
Requirements
The following platforms are supported by this cookbook.
- Ubuntu 12.04/14.04/16.04
- CentOs 7
- Fedora 21
- Debian 8
- Amazon Linux AMI 2015.03
packages
-
aws-codedeploy-agent
- install aws-codedeploy-agent
Attributes
Customize the version of aws-codedeploy-agent to be installed and the version of the ruby and aws-sdk-core dependencies
aws-codedeploy-agent::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>node['aws-codedeploy-agent']['rbenv_ruby-version']</tt></td>
<td>string</td>
<td>Set the default ruby version of code deploy</td>
<td><tt>2.1.5</tt></td>
</tr>
<tr>
<td><tt>node['aws-codedeploy-agent']['aws_sdk_core-version']</tt></td>
<td>string</td>
<td>Set the version of aws-sdk-core gem. See <a href="https://rubygems.org/gems/aws-sdk-core/versions/2.3.17">rubygems for alternate release versions.</a></td>
<td><tt>2.6.11</tt></td>
</tr>
<tr>
<td><tt>node['aws-codedeploy-agent']['aws_codedeploy_agent-version']</tt></td>
<td>string</td>
<td>Set the version of the code deploy agent to be installed. Tracks master, other options include "v1.0-1011" or see <a href="https://github.com/aws/aws-codedeploy-agent/releases">the release archive for available, tagged versions</a> </td>
<td><tt>master</tt></td>
</tr>
</table>
Usage
aws-codedeploy-agent::default
Just include aws-codedeploy-agent
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[aws-codedeploy-agent]" ] }
Testing
Default .kitchen.yml test the cookbook in docker containers.
To test locally:
kitchen list kitchen converge aws-codedeploy-agent-ubuntu-1604 kitchen verify aws-codedeploy-agent-ubuntu-1604
To test the cookbook on AWS instances use:
Configure the access to your AWS account using the AWS CLI:
bash
aws configure --profile=AWS_CLI_PROFILE
copy the .kitchen-aws.yml to .kitchen-aws.local.yml and configure to suite your AWS account.
AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen list AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1604-aws AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1404-aws AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-ubuntu-1204-aws AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-debian-8-aws AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-centos-7-aws AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify aws-codedeploy-agent-amazon-linux
To test all at once:
AWS_PROFILE=AWS_CLI_PROFILE KITCHEN_YAML=.kitchen-aws.local.yml bundle exec kitchen verify -c 5
Refer to the kitchen-ec2 documentation
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors:
- Oswald De Riemaecker (oswald@continuousphp.com)
Copyright 2015, Continuous S.A. 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
ohai >= 0.0.0 |
build-essential >= 0.0.0 |
ruby_rbenv >= 0.0.0 |
ruby_build >= 0.0.0 |
cloudcli >= 0.0.0 |
ark = 3.1.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.7.1 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.1 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.1 failed this metric
FC066: Ensure chef_version is set in metadata: aws-codedeploy-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: aws-codedeploy-agent/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: aws-codedeploy-agent/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/download_installer.rb:4
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/manual_installer.rb:4
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.7.1 passed this metric
Testing File Metric
0.7.1 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.1 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
0.7.1 failed this metric
0.7.1 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.1 failed this metric
FC066: Ensure chef_version is set in metadata: aws-codedeploy-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: aws-codedeploy-agent/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: aws-codedeploy-agent/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/download_installer.rb:4
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/manual_installer.rb:4
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.7.1 passed this metric
Testing File Metric
0.7.1 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.1 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
0.7.1 failed this metric
FC069: Ensure standardized license defined in metadata: aws-codedeploy-agent/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: aws-codedeploy-agent/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/download_installer.rb:4
FC122: Use the build_essential resource instead of the recipe: aws-codedeploy-agent/definitions/manual_installer.rb:4
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.7.1 passed this metric
Testing File Metric
0.7.1 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.1 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
0.7.1 failed this metric
0.7.1 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