Defined Type: rhsm::repo
- Defined in:
- manifests/repo.pp
Overview
Authors
Ger Apeldoorn <info@gerapeldoorn.nl>
Copyright
Copyright 2014 Ger Apeldoorn, unless otherwise noted.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'manifests/repo.pp', line 9
define rhsm::repo (
) {
if $rhsm::proxy_hostname {
$proxycli = "--proxy=http://${rhsm::proxy_hostname}:${rhsm::proxy_port} --proxyuser=${rhsm::proxy_user} --proxypass=${rhsm::proxy_password}"
}
$command = "/usr/sbin/subscription-manager repos --enable=${title} ${proxycli}"
exec { "RHSM::repo register ${title}":
command => $command,
unless => "/bin/grep ${title} /etc/yum.repos.d/redhat.repo",
require => Exec['RHNSM-register'],
}
}
|