From 7a2d433a980502c4ef5d8a1e906cbaff6cf8a1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20G=C3=B6tte?= Date: Tue, 15 Oct 2024 16:44:44 +0200 Subject: [PATCH] change oracle timer to run every 20minutes --- modules/oracle-cloud-instance-launcher/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/oracle-cloud-instance-launcher/default.nix b/modules/oracle-cloud-instance-launcher/default.nix index ffb002d..8a18bf2 100644 --- a/modules/oracle-cloud-instance-launcher/default.nix +++ b/modules/oracle-cloud-instance-launcher/default.nix @@ -12,8 +12,8 @@ in { systemd.timers."oracle-cloud-instance-launcher" = { wantedBy = [ "timers.target" ]; timerConfig = { - OnBootSec = "1h"; - OnUnitActiveSec = "1h"; + OnBootSec = "20m"; + OnUnitActiveSec = "20m"; Unit = "oracle-cloud-instance-launcher.service"; }; }; @@ -23,7 +23,7 @@ in { # Make shure, you have a "config" file and api-key certificate in /root/.oci/ # Also be aware that the oci-cli package wants a .pub filetype as an ssh key file # Variables defined in /var/src/secrets/oracle/config.yaml - + COMPARTMENT_ID=$(${pkgs.yq}/bin/yq .COMPARTMENT_ID /var/src/secrets/oracle/config.yaml | xargs) SHAPE=$(${pkgs.yq}/bin/yq .SHAPE /var/src/secrets/oracle/config.yaml | xargs) SUBNET_ID=$(${pkgs.yq}/bin/yq .SUBNET_ID /var/src/secrets/oracle/config.yaml | xargs)