package io.trygvis.rules.machine; import io.trygvis.rules.dba.Cluster; import io.trygvis.rules.dba.Container; import io.trygvis.rules.machine.Machine; import io.trygvis.rules.dns.DnsEntry; rule "New machine" when $container: Container() then insert(DnsEntry.a($container.name + ".machine.acme.org")); insert(DnsEntry.aaaa($container.name + ".machine.acme.org")); end