class virtual::xen::domain::centos inherits xen::domain::base { package{ 'kernel-xen': ensure => present, } Service[xend]{ require => Package['kernel-xen'], } file{'/etc/sysconfig/xend': source => "puppet:///modules/virtual/xen/${operatingsystem}/sysconfig/xend", notify => Service['xend'], owner => root, group => 0, mode => 0644; } file{'/etc/sysconfig/xendomains': source => "puppet:///modules/virtual/xen/${operatingsystem}/sysconfig/xendomains", owner => root, group => 0, mode => 0644; } case $xen_domains { '0': { info("No xen domains are running, so not configuring service xendomains") } default: { Service[xendomains]{ require => Package['kernel-xen'], } File['/etc/sysconfig/xendomains']{ notify => Service[xendomains] } } } }