Skip to content

Commit 15a4d2e

Browse files
committed
Add default cloudstack repo metadata_expire
The default value is set to 6 hours (the same default value of YUM) and potentially can be overwritten to lower value for custom cookbooks/repos.
1 parent 4279f8d commit 15a4d2e

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ cloudstack CHANGELOG
33

44
This file is used to list changes made in each version of the co-cloudstack cookbook.
55

6+
4.1.2
7+
-----
8+
- khos2ow - add default metadata expire to cloudstack repo
9+
610
4.1.1
711
-----
812
- khos2ow - add server-id for mysql

attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
default['cloudstack']['repo_sign'] = ''
3636
#default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/RPM-GPG-KEY'
3737
default['cloudstack']['repo_enabled'] = true
38+
default['cloudstack']['repo_metadata_expire'] = '6h'
3839
when 'ubuntu', 'debian'
3940
default['cloudstack']['repo_url'] = "http://cloudstack.apt-get.eu/ubuntu"
4041
default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/release.asc'

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache 2.0'
55
description 'Installs/Configures cloudstack'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '4.1.1'
7+
version '4.1.2'
88

99
source_url 'https://github.com/cloudops/cookbook_cloudstack'
1010
issues_url 'https://github.com/cloudops/cookbook_cloudstack/issues'

recipes/repo_rhel.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
description 'Apache Cloudstack'
2424
baseurl node['cloudstack']['repo_url']
2525
enabled node['cloudstack']['repo_enabled']
26+
metadata_expire node['cloudstack']['repo_metadata_expire']
2627
gpgkey node['cloudstack']['repo_sign']
2728
gpgcheck node['cloudstack']['repo_sign'].empty? ? false : true
2829
action :create

0 commit comments

Comments
 (0)