项目作者: eternaltyro

项目描述 :
Chef cookbook to install and maintain AWS inspector
高级语言: Ruby
项目地址: git://github.com/eternaltyro/chef-aws-inspector.git
创建时间: 2016-12-10T16:06:08Z
项目社区:https://github.com/eternaltyro/chef-aws-inspector

开源协议:MIT License

下载


aws-inspector

Install and manage AWS Inspector agent.

Usage

Add the recipe to the node or the role files where you want AWS
inspector installed. If you want to remove AWS-inspector from a
particular node, set inspector.enabled attribute to false in the node
file and it will be removed.

  1. ```
  2. {
  3. "name": "aws-inspector.test",
  4. "chef_environment": "testing",
  5. "run_list": [
  6. "recipe[aws-inspector]"
  7. ],
  8. "normal": {
  9. "inspector": {
  10. "enabled": true
  11. }
  12. }
  13. ...
  14. }
  15. ```

Supported Operating Systems

  • Debian Jessie
  • Ubuntu
  • CentOS 7
  • Amazon Linux
  • Microsoft Windows 2008 R2 or higher

Depends

  • apt
  • yum

Contributions

Quality Checks

Foodcritic:

  • All foodcritic recommendations followed except that I use symbols
    rather than strings to access node attributes (FC001)

    1. $ sudo gem install foodcritic
    2. $ foodcritic <path_to_recipe>

Kitchen:

  • Use Kitchen to test the cookbook against a real system. Preferably an
    instance machine with Ubuntu or CentOS. Note that in kitchen.yml, it
    is necessary to edit aws_ssh_key_id and ssh_key to point to an SSH
    key pair in your account.

    1. $ bundle install
    2. $ kitchen test
    3. # =======
    4. $ sudo gem install test-kitchen kitchen-vagrant
    5. $ kitchen init
    6. $ kitchen diagnose --all
  • Running converge

    1. $ kitchen converge default-ubuntu-1404
  • I use zsh inplace of bash. I had to do this to make kitchen work:

    1. $ eval "$(chef shell-init zsh)"

TODO: Unit tests using RSpec and ChefSpec

License

Licensed under MIT license. License text available in LICENSE.txt

While the cookbook itself is licensed under MIT, the AWS installer
script, the AWS inspector agent binary and files are licensed under
other licenses which may be more restrictive than MIT including GPLv2,
Apache, PCRE2 and BSD licenses. Please see the following file post
installation for the license text pertaining to AWS artefacts.

  1. /opt/aws/awsagent/LICENSE