Puppet Class: one::compute_node::service

Defined in:
manifests/compute_node/service.pp

Overview

Class one::compute_node::service

Installation and Configuration of OpenNebula opennebula.org/

Author

ePost Development GmbH © 2013

Contributors:

  • Martin Alfke

  • Achim Ledermueller (Netways GmbH)

  • Sebastian Saemann (Netways GmbH)

License

Apache License Version 2.0 www.apache.org/licenses/LICENSE-2.0.html



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'manifests/compute_node/service.pp', line 19

class one::compute_node::service {
  service { $one::params::libvirtd_srv:
    ensure    => 'running',
    hasstatus => true,
    enable    => true,
  }
  case $::osfamily {
      'RedHat': {
          service { 'ksmtuned':
            ensure    => 'stopped',
            enable    => false,
            hasstatus => true,
          }
          service { 'ksm':
            ensure    => running,
            enable    => true,
            hasstatus => true,
          }
      }
      default: {
          notice('we need to check how to enable ksm.')
      }
  }
}