29 lines
838 B
Puppet
29 lines
838 B
Puppet
## confdroid_jenkins::main::yumrepo.pp
|
|
# Module name: confdroid_jenkins
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages yum repos for the installation
|
|
##############################################################################
|
|
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,
|
|
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'],
|
|
# }
|
|
}
|
|
}
|