Skip to content

Commit aa127db

Browse files
committed
add support for enabling/disabling cloudstack repo
This is to disable it on the environment or node level to prevent `yum update` accidentally update cloudstack packages and let the `chef-client` always disable it and manually get enabled (by editting the repo file on the server) when cloudstack acutally needs to be updated.
1 parent 1d49f97 commit aa127db

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.0
7+
-----
8+
- khos2ow - add support for enabling/disabling cloudstack repo
9+
610
4.0.7
711
-----
812
- pdion891 - add support for CentOS 7 for ACS 4.10 with JDK8

attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
default['cloudstack']['repo_url'] = "http://cloudstack.apt-get.eu/centos/$releasever/#{node['cloudstack']['release_major']}/"
3535
default['cloudstack']['repo_sign'] = ''
3636
#default['cloudstack']['repo_sign'] = 'http://cloudstack.apt-get.eu/RPM-GPG-KEY'
37+
default['cloudstack']['repo_enabled'] = true
3738
when 'ubuntu', 'debian'
3839
default['cloudstack']['repo_url'] = "http://cloudstack.apt-get.eu/ubuntu"
3940
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.0.7'
7+
version '4.1.0'
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
@@ -22,6 +22,7 @@
2222
yum_repository 'cloudstack' do
2323
description 'Apache Cloudstack'
2424
baseurl node['cloudstack']['repo_url']
25+
enabled node['cloudstack']['repo_enabled']
2526
gpgkey node['cloudstack']['repo_sign']
2627
gpgcheck node['cloudstack']['repo_sign'].empty? ? false : true
2728
action :create

0 commit comments

Comments
 (0)