Last Updated: February 25, 2016
·
341
· miqui

load code based on operating system

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