From 94be46a29d7a33d1151647958bd3fbf448324d55 Mon Sep 17 00:00:00 2001 From: Pythyu Date: Mon, 25 Mar 2024 14:12:22 +0100 Subject: [PATCH] feat(chef): custom repository doc --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d128fb4f..0be35d42 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,18 @@ The following example downgrades to Agent v6. The same applies if you are downgr To uninstall the Agent, remove the `dd-agent` recipe and add the `remove-dd-agent` recipe with no attributes. +### Custom Agent Repository + +To use an agent from a different repository than stable, we can set the `aptrepo` option. By default this option is equal to `[signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] apt.datadoghq.com`, if a custom value is set, another `signed-by` keyring can be set `[signed-by=custom-repo-keyring-path] custom-repo`. +Staging example : +```ruby + default_attributes( + 'datadog' => { + 'aptrepo' => '[signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] apt.datad0g.com', + } + } +``` + ## Recipes Access the [Datadog Chef recipes on GitHub][7].