Hi,
I am working on network module and analyzing the code from the url https://github.com/razorsedge/puppet-network/blob/master/manifests/bond/static.pp , but I don't understand the below case statment
case $::operatingsystem {
/^(RedHat|CentOS|OEL|OracleLinux|SLC|Scientific)$/: {
case $::operatingsystemrelease {
/^[45]/: {
augeas { "modprobe.conf_${title}":
context => '/files/etc/modprobe.conf',
changes => [
"set alias[last()+1] ${title}",
'set alias[last()]/modulename bonding',
],
onlyif => "match alias[*][. = '${title}'] size == 0",
before => Network_if_base[$title],
}
}
default: {}
}
why do they use "45" value as selector facts, how it's possible for os version "RedHat|CentOS|OEL|OracleLinux|SLC|Scientific"
↧