X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fganeti2%2Fmanifests%2Finit.pp;h=436c0dd412f30dddcbaf1ca7136d50510fa8a325;hb=5fc7be1b1776a7fd0322dcd9fae32e34d4d01ed5;hp=b7b1b59f59f0ffdf2a67f532447462c0edc1ec7e;hpb=72f40e1fd87426f75b0b6be202efc79893476ac2;p=mirror%2Fdsa-puppet.git diff --git a/modules/ganeti2/manifests/init.pp b/modules/ganeti2/manifests/init.pp index b7b1b59f5..436c0dd41 100644 --- a/modules/ganeti2/manifests/init.pp +++ b/modules/ganeti2/manifests/init.pp @@ -8,4 +8,35 @@ class ganeti2 { ensure => installed } + package { 'ganeti-instance-debootstrap': + ensure => installed + } + + package { 'ganeti-htools': + ensure => installed + } + + @ferm::rule { 'dsa-ganeti-noded-v4': + description => 'allow ganeti-noded communication between', + rule => 'proto tcp mod state state (NEW) dport (1811) @subchain \'ganeti-noded\' { saddr ($HOST_GANETI_V4) daddr ($HOST_GANETI_V4) ACCEPT; }', + notarule => true, + } + + @ferm::rule { 'dsa-ganeti-confd-v4': + description => 'allow ganeti-confd communication', + rule => 'proto udp mod state state (NEW) dport (1814) @subchain \'ganeti-confd\' { saddr ($HOST_GANETI_V4) daddr ($HOST_GANETI_V4) ACCEPT; }', + notarule => true, + } + + @ferm::rule { 'dsa-ganeti-rapi-v4': + description => 'allow ganeti-rapi communication', + rule => 'proto tcp mod state state (NEW) dport (5080) @subchain \'ganeti-rapi\' { saddr ($HOST_GANETI_V4) daddr ($HOST_GANETI_V4) ACCEPT; }', + notarule => true, + } + + @ferm::rule { 'dsa-drbd-v4': + description => 'allow drbd communication', + rule => 'proto tcp mod state state (NEW) dport (11000:11999) @subchain \'drbd\' { saddr ($HOST_DRBD_V4) daddr ($HOST_DRBD_V4) ACCEPT; }', + notarule => true, + } }