Skip to content

tomharvey/aws-codedeploy-agent

 
 

Repository files navigation

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 attributes to set ruby version requirements of AWS aws-codedeploy-agent (currently 2.0.0-p645)

aws-codedeploy-agent::default

Key Type Description Default
node['aws-codedeploy-agent']['rbenv_ruby-version'] string Set the default ruby version of code deploy 2.1.5

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:

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

  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

Authors:

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.

About

Cookbook to install AWS Codedeploy Agent

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%