Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Doubt in network module from puppet forge

$
0
0
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"

Viewing all articles
Browse latest Browse all 6104

Trending Articles