Puppet Class: network

Defined in:
manifests/init.pp

Overview

Class: network

This module manages Red Hat/Fedora network configuration.

Parameters:

None

Actions:

Defines the network service so that other resources can notify it to restart.

Sample Usage:

include '::network'

Authors:

Mike Arnold <mike@razorsedge.org>

Copyright © 2011 Mike Arnold, unless otherwise noted.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/init.pp', line 25

class network {
  # Only run on RedHat derived systems.
  case $::osfamily {
    'RedHat': { }
    default: {
      fail('This network module only supports RedHat-based systems.')
    }
  }

  service { 'network':
    ensure     => 'running',
    enable     => true,
    hasrestart => true,
    hasstatus  => true,
    provider   => 'redhat',
  }
}