Yesterday (02.03.2015) my cookbook for installing a cent-os continuous integration server failed unexpectedly on Jenkins installation.
The reason was a timeout of the yum installation. After some time I found out that the Saturday before (28.02.2015) a new version of Jenkins (1.600) had been released. And sine the second of may was a Monday apparently a lot of users downloaded the new version and download performance of the yum repository was therefore very slow for that package.
I resolved the issue by falling back to a later version of Jenkins (1.589-1.1). The download for that package was considerably quicker. This could easily be done by setting the appropriate default attribute for the Jenkins version:
1 |
default['jenkins']['master']['version'] = "1.589-1.1" |
Another way of trying to fix the problem would be to increase the timeout. This can be done using Chef Config attribute:
1 |
Chef::Config[:yum_timeout] = 1800 |
As it is explained here