- @ferm::rule { 'dsa-drbd-v4':
- description => 'allow drbd communication',
- 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,
+ package { ['python-dbus', 'systemd-container']: ensure => installed }
+ file { '/usr/local/sbin/ganeti-machined-register-instances':
+ source => 'puppet:///modules/ganeti2/ganeti-machined-register-instances',
+ mode => '0555',
+ }
+ file { [
+ '/etc/ganeti/hooks',
+ '/etc/ganeti/hooks/instance-reboot-post.d',
+ '/etc/ganeti/hooks/instance-migrate-post.d',
+ '/etc/ganeti/hooks/instance-start-post.d',
+ '/etc/ganeti/hooks/instance-failover-post.d',
+ '/etc/ganeti/hooks/instance-add-post.d',
+ ]:
+ ensure => directory,
+ }
+ file { [
+ '/etc/ganeti/hooks/instance-reboot-post.d/00-ganeti-machined-register-instances',
+ '/etc/ganeti/hooks/instance-migrate-post.d/00-ganeti-machined-register-instances',
+ '/etc/ganeti/hooks/instance-start-post.d/00-ganeti-machined-register-instances',
+ '/etc/ganeti/hooks/instance-failover-post.d/00-ganeti-machined-register-instances',
+ '/etc/ganeti/hooks/instance-add-post.d/00-ganeti-machined-register-instances',
+ ]:
+ ensure => link,
+ target => '/usr/local/sbin/ganeti-machined-register-instances',