Puppet Class: libvirt::service

Inherits:
libvirt
Defined in:
manifests/service.pp

Overview

Class: libvirt::service

Installs services

Parameters

service_name

Service name for libvirt. The default value is Distribution specific and inherited from ::libvirt class.

service_ensure

Whether the service should be running. Defaults to 'running'

service_enable

Whether the service should be enabled. Defaults to true

Parameters:

  • service_name (Any) (defaults to: $libvirt::service_name)
  • service_ensure (Any) (defaults to: 'running')
  • service_enable (Any) (defaults to: true)


19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/service.pp', line 19

class libvirt::service(
  $service_name   = $libvirt::service_name,
  $service_ensure = 'running',
  $service_enable = true,
) inherits libvirt {

  service {'libvirtd':
    ensure => $service_ensure,
    name   => $service_name,
    enable => $service_enable,
  }
}