Puppet Class: network::params
- Defined in:
- manifests/params.pp
Overview
Class: network::params
Defines all the variables used in the module.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'manifests/params.pp', line 5
class network::params {
$service_restart_exec = $::osfamily ? {
'Debian' => '/sbin/ifdown -a --force ; /sbin/ifup -a',
'Solaris' => '/usr/sbin/svcadm restart svc:/network/physical:default',
default => 'service network restart',
}
$config_file_path = $::osfamily ? {
'Debian' => '/etc/network/interfaces',
'RedHat' => '/etc/sysconfig/network-scripts/ifcfg-eth0',
'Suse' => '/etc/sysconfig/network/ifcfg-eth0',
default => undef,
}
$config_file_mode = $::osfamily ? {
default => '0644',
}
$config_file_owner = $::osfamily ? {
default => 'root',
}
$config_file_group = $::osfamily ? {
default => 'root',
}
$config_dir_path = $::osfamily ? {
'Debian' => '/etc/network',
'Redhat' => '/etc/sysconfig/network-scripts',
'Suse' => '/etc/sysconfig/network',
default => undef,
}
$package_name = $::operatingsystem ? {
'Ubuntu' => 'ifupdown',
default => undef,
}
case $::osfamily {
'Debian','RedHat','Amazon','Suse', 'Solaris': { }
default: {
fail("${::operatingsystem} not supported.")
}
}
}
|