blob: bd01338fc05760c377ed2fd42266d1e0ecc76aca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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]
}
}
}
}
|