load code based on operating system
case $operatingsystem {
'RedHat', 'CentOS': { }
/^(Debian|Ubuntu)$/:{ }
default: {
fail("Unsupported ${::operatingsystem}")
}
}
Written by Miguel Quintero
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Puppet
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#