From cb6f9e926ac9d5ac5ac32dccaafd05af62fadc72 Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Tue, 7 Nov 2023 10:40:08 +0100 Subject: [PATCH] Explicit --- examples/ssh/aem.tf | 236 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 230 insertions(+), 6 deletions(-) diff --git a/examples/ssh/aem.tf b/examples/ssh/aem.tf index fcb7b3c..cb16ed6 100644 --- a/examples/ssh/aem.tf +++ b/examples/ssh/aem.tf @@ -10,11 +10,7 @@ resource "aem_instance" "single" { private_key_file = local.ssh_private_key # cannot be put into state as this is OS-dependent } } - /* TODO support this as well - files = { - "lib" = "${local.aem_single_compose_dir}/aem/home/lib" - } - */ + system { data_dir = local.aem_single_compose_dir bootstrap = <= 11, < 12" + + # Pre-installed local JDK dir + # a) keep it empty to download open source Java automatically for current OS and architecture + # b) set it to absolute path or to env var '[[.Env.JAVA_HOME]]' to indicate where closed source Java like Oracle is installed + home_dir: "" + + # Auto-installed JDK options + download: + # Source URL with template vars support + url: "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_[[.Arch]]_[[.Os]]_hotspot_11.0.18_10.[[.ArchiveExt]]" + # Map source URL template vars to be compatible with Adoptium Java + replacements: + # Var 'Os' (GOOS) + "darwin": "mac" + # Var 'Arch' (GOARCH) + "x86_64": "x64" + "amd64": "x64" + "386": "x86-32" + # enforce non-ARM Java as some AEM features are not working on ARM (e.g Scene7) + "arm64": "x64" + "aarch64": "x64" + + base: + # Location of temporary files (downloaded AEM packages, etc) + tmp_dir: aem/home/tmp + # Location of supportive tools (downloaded Java, OakRun, unpacked AEM SDK) + tool_dir: aem/home/opt + + log: + level: info + timestamp_format: "2006-01-02 15:04:05" + full_timestamp: true + + input: + format: yml + file: STDIN + + output: + format: text + log: + # File path of logs written especially when output format is different than 'text' + file: aem/home/var/log/aem.log + # Controls where outputs and logs should be written to when format is 'text' (console|file|both) + mode: console + EOF } }