A cookbook of Chef recipes for the Deep Security agent. This allows for the easy deployment of the Deep Security agent as well as taking some common actions from the agent.
This repository is also setup for use from AWS OpsWorks. You can enable this as a custom cookbook within your stack. This makes is very easy to ensure that the Deep Security agent is running on all of the EC2 instances within your stack.
To enable a custom cookbook:
- From within your stack, click the "Stack Settings" button
- On the stack setting page, click the blue "Edit" button
- Slide the "Use custom Chef cookbooks" toggle to "Yes"
- Set the follow:
- "Repository type": git
- "Repository URL": https://github.com/deep-security/chef.git
- Click the blue "Save" button
- On the "Deployments" page for your stack, click the gray "Run Command" button
If you have existing instances running, do the following;
- Select "Update Custom Cookbooks" from the "Command" drop-down
- Click the blue, "Update Custom Cookbooks" button to run the command
In the Layers section of the OpsWorks Management Console, for your layer;
- Click Recipes
- Under "Custom Recipes", in the "Configuration" life cycle enter deep-security-agent::default
- Click the General Settings section
- In the "Custom JSON" section, enter the necessary recipe settings
The recipe settings will be along the lines of;
{
"tenant_id": "11111111-2222-3333-4444-555555555555",
"policy_name": "Policy Name",
"tenant_password": "11111111-2222-3333-4444-555555555555"
}
The recipes within this repo are now available to you from within your AWS OpsWorks stack.
--This technique is still being tested--
Since AWS OpsWorks only allows one custom cookbook per stack. You have to do a little extra work if you want to incorporate multiple custom cookbooks. Thankfully, git makes this easy.
- Create a new repo that you will use as your custom cookbook
- Add each cookbook you want to use as a
git submodule
- Create a symbolic link to the recipe at the top level of the new repo (
ln -s clone/recipe recipe
)
This will keep each of the customer cookbook in it's own git repo but allow you to point OpsWorks to one place.
We're always open to PRs from the community. To submit one:
- Fork the repo
- Create a new feature branch
- Make your changes
- Submit a PR with an explanation of what/why/cavaets/etc.
We'll review and work with you to make sure that the fix gets pushed out quickly.