All pastes #807382 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-06 17:35 UTC
rendered paste body
# yum.pp

class yum {

    case $operatingsystem {
        CentOS: {
            remotefile { "/etc/yum.repos.d/CentOS-base.repo":
                mode => 444, owner => root, group => root,
                source => "/common/etc/yum.repos.d/CentOS-base.repo"
            }
        }
    }
}

# try this?
class yum {
  $filename = $operatingsystem {
    centos => "/common/etc/yum.repos.d/CentOS-base.repo"
    default => "/common/etc/yum.repos.d/base.repo"
  }
  remotefile { "/etc/yum.repos.d/CentOS-base.repo":
    mode => 444, owner => root, group => root,
    source => $filename
  }