0
# jenkins.pp
class jenkins {
yumrepo { "jenkins":
baseurl => "http://pkg.jenkins-ci.org/redhat",
descr => "Jenkins",
enabled => 1,
gpgcheck => 1,
gpgkey => "http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key",
}
#package {"jenkins": ensure => latest}
package {"jenkins": ensure => "1.509.1"}
}
include jenkins
但它仍然安裝了最新的版本,而不是LTS版本,這是1.509.1
我試過了:這是木偶申請: ug:Puppet :: Type :: Package :: ProviderYum:執行'/ usr/bin/yum -d 0 -e 0 -y install jenkins-1.509.1' 錯誤:/ Stage [main]/Jenkins/Package [jenkins] /確保:從缺席更改爲1.509.1失敗:無法更新:執行'/ usr/bin/yum -d 0 -e 0 -y install jenkins -1.509.1'返回1:錯誤:無事可做 at /home/kahmed/qa/puppet_qa/modules/jenkins/manifests/jenkins.pp:12 – kamal 2013-05-13 04:10:11
您閱讀的第一個鏈接? – plsgogame 2013-05-13 07:27:08
我做了,所以當我試着https://puppetlabs.com/blog/module-of-the-week-rtylerjenkins-continuous-integration-server/並創建一個jenkins.pp時,我試圖做同樣的事情https://github.com/realmedia/puppet-jenkins.git但我得到錯誤: '/ usr/bin/yum -d 0 -e 0 -y install jenkins' err:/ Stage [main]/Jenkins /軟件包[jenkins] /確保:從缺席變爲現在失敗:執行'/ usr/bin/yum -d 0 -e 0 -y install jenkins'返回1: 下載軟件包時出錯: jenkins-1.514-1.1。 noarch:失敗:詹金斯jenkins-1.514-1.1.noarch.rpm:[Errno 256]沒有更多的鏡像嘗試。 – kamal 2013-05-13 14:31:25