From 384756a8a7f2c2e4038979343dbb4c9341841827 Mon Sep 17 00:00:00 2001 From: Simone Ruffilli Date: Tue, 25 Oct 2022 18:09:31 +0200 Subject: [PATCH] SimpleNVA: updated example --- modules/cloud-config-container/simple-nva/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/cloud-config-container/simple-nva/README.md b/modules/cloud-config-container/simple-nva/README.md index 5014e9a3..3f5b0553 100644 --- a/modules/cloud-config-container/simple-nva/README.md +++ b/modules/cloud-config-container/simple-nva/README.md @@ -35,6 +35,13 @@ module "nva-cloud-config" { source = "../../../cloud-foundation-fabric/modules/cloud-config-container/simple-nva" enable_health_checks = true network_interfaces = local.network_interfaces + files = { + "/var/lib/cloud/scripts/per-boot/firewall-rules.sh" = { + content = file("./your_path/to/firewall-rules.sh") + owner = "root" + permissions = 0700 + } + } } # COS VM @@ -63,9 +70,10 @@ module "nva" { | name | description | type | required | default | |---|---|:---:|:---:|:---:| -| [network_interfaces](variables.tf#L29) | Network interfaces configuration. | list(object({…})) | ✓ | | +| [network_interfaces](variables.tf#L39) | Network interfaces configuration. | list(object({…})) | ✓ | | | [cloud_config](variables.tf#L17) | Cloud config template path. If null default will be used. | string | | null | -| [enable_health_checks](variables.tf#L23) | Configures routing to enable responses to health check probes. | bool | | false | +| [enable_health_checks](variables.tf#L33) | Configures routing to enable responses to health check probes. | bool | | false | +| [files](variables.tf#L23) | Map of extra files to create on the instance, path as key. Owner and permissions will use defaults if null. | map(object({…})) | | {} | | [test_instance](variables-instance.tf#L17) | Test/development instance attributes, leave null to skip creation. | object({…}) | | null | | [test_instance_defaults](variables-instance.tf#L30) | Test/development instance defaults used for optional configuration. If image is null, COS stable will be used. | object({…}) | | {…} |