7p9c7g
Last Updated: February 25, 2016
·
108
· miqui
32b2b77947a5ff67da1b7ebe599c1902

load code based on operating system

case $operatingsystem {
  'RedHat', 'CentOS': {  }
  /^(Debian|Ubuntu)$/:{  }
  default:  {  
           fail("Unsupported ${::operatingsystem}")   
  }
} 
Say Thanks
Respond