]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/manifests/init.pp
Add migration ferm rules to the ganeti module
[dsa-puppet.git] / modules / ganeti2 / manifests / init.pp
index 79a2ba16a608b75334f94774a3255288d40d8bec..7308ca2e9e9f6d57c984934c95dff8a03dca37bf 100644 (file)
@@ -39,4 +39,10 @@ class ganeti2 {
                rule        => 'proto tcp mod state state (NEW) dport (11000:11999) @subchain \'drbd\' { saddr ($HOST_GANETI_BACKEND_V4) daddr ($HOST_GANETI_BACKEND_V4) ACCEPT; }',
                notarule    => true,
        }
+
+       @ferm::rule { 'dsa-ganeti-migrate':
+               description => 'allow kvm to migrate instances',
+               rule        => 'proto tcp dport 8102 @subchain \'kvm-migrate\' { saddr ($HOST_GANETI_BACKEND_V4) daddr ($HOST_GANETI_BACKEND_V4) ACCEPT; }',
+               notarule    => true,
+       }
 }