Puppet Class: confdroid_jenkins::main::yumrepo
- Inherits:
- confdroid_jenkins::params
- Defined in:
- manifests/main/yumrepo.pp
Summary
Class manages yum repos for the installationOverview
confdroid_jenkins::main::yumrepo.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/main/yumrepo.pp', line 6
class confdroid_jenkins::main::yumrepo (
) inherits confdroid_jenkins::params {
if $fqdn == $js_host_fqdn {
yumrepo { 'jenkins':
descr => 'Jenkins-stable',
baseurl => $js_base_url,
gpgcheck => $js_gpg_check,
repo_gpgcheck => $js_gpg_repo_check,
enabled => $js_repo_enabled,
}
# import rpm key
exec { $js_key:
command => "rpm --import ${js_base_url}/${js_key}",
path => '/bin:/usr/bin:/sbin:/usr/sbin',
cwd => '/tmp',
user => 'root',
unless => "rpm -q ${js_key_code} 2>/dev/null",
require => Yumrepo['jenkins'],
}
}
}
|