Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myclass::common {
- case $operatingsystem {
- redhat: {
- $pkg = 'redhat-pkgname'
- }
- solaris: {
- $pkg = 'solaris-pkgname'
- }
- }
- }
- class myclass inherits myclass::common {
- package { $pkg: ensure => 'installed' }
- }
Add Comment
Please, Sign In to add comment