Skip to content

Commit

Permalink
docs: Add example for ops-agent-policy module README.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Oct 30, 2024
1 parent dc14b11 commit 605f607
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions modules/ops-agent-policy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ This module is used to install/uninstall the ops agent in GCE.

## Usage

Basic usage of this module is as follows:

Sample module to install [Ops Agent](https://cloud.google.com/stackdriver/docs/solutions/ops-agent) on all Debian 12 VMs with the label "goog-ops-agent-policy=enabled".
```hcl
module "ops_agent_policy" {
source = "github.com/terraform-google-modules/terraform-google-cloud-operations/modules/ops-agent-policy"
project = "<PROJECT ID>"
zone = "<ZONE>"
assignment_id = "example-ops-agent-policy"
agents_rule = {
package_state = "installed"
version = "latest"
}
instance_filter = {
all = false
inventories = [{
os_short_name = "debian"
os_version = "12"
}]
inclusion_labels = [{
labels = {
goog-ops-agent-policy = "enabled"
}
}]
}
}
```

Functional examples are included in the [examples](./../../examples) directory.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down

0 comments on commit 605f607

Please sign in to comment.