diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-06 12:12:39 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-06 12:12:39 +0100 |
commit | b40cab15f4d01a4e8455e5808ca82e40ff291a92 (patch) | |
tree | 91ca5f2c2cd812776662d58de12a094b8278093b /module/ri-engine/src/main/resources | |
parent | b8699860653e593271e50c8ba1b73f66fcb6287c (diff) | |
download | rules-sandbox-b40cab15f4d01a4e8455e5808ca82e40ff291a92.tar.gz rules-sandbox-b40cab15f4d01a4e8455e5808ca82e40ff291a92.tar.bz2 rules-sandbox-b40cab15f4d01a4e8455e5808ca82e40ff291a92.tar.xz rules-sandbox-b40cab15f4d01a4e8455e5808ca82e40ff291a92.zip |
Renaming VPN stuff to wireguard.
Diffstat (limited to 'module/ri-engine/src/main/resources')
-rw-r--r-- | module/ri-engine/src/main/resources/io/trygvis/rules/acme/acme.drl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/module/ri-engine/src/main/resources/io/trygvis/rules/acme/acme.drl b/module/ri-engine/src/main/resources/io/trygvis/rules/acme/acme.drl index 0465343..7d53763 100644 --- a/module/ri-engine/src/main/resources/io/trygvis/rules/acme/acme.drl +++ b/module/ri-engine/src/main/resources/io/trygvis/rules/acme/acme.drl @@ -4,16 +4,13 @@ import io.trygvis.rules.machine.Machine; import io.trygvis.rules.dba.Cluster; import io.trygvis.rules.dba.Container; +dialect "mvel" + declare AcmeServer name : String machine : Machine end -//declare MachinePublicName -// machine : Machine -// fqdn : String -//end - rule "Ops" when $ops: AcmeOps() @@ -56,7 +53,6 @@ when $m : Machine(fqdn == null) $s : AcmeServer(machine == $m) then - var fqdn = "%s.machine.acme.com".formatted($s.machine.name); - $s.machine.fqdn = fqdn; + $s.machine.fqdn = "%s.machine.acme.com".formatted($s.machine.name); update($s.machine) end |