Filippo Giunchedi has uploaded a new change for review. https://gerrit.wikimedia.org/r/141677
Change subject: swift: trial icehouse upgrade in esams ...................................................................... swift: trial icehouse upgrade in esams The idea behind the pinning is being able to run "apt-get install swift" whenever upgrading a box and have apt figure out that all of its dependencies must come from icehouse, thus needs to be higher than origin "wikimedia" pinned at 1001. Rollback is to remove the preference/pinning and run "apt-get install swift" again to have the packages downgraded. Change-Id: I8d86bef9d1191f09f28dba94d1886100ce75199f --- M manifests/role/swift.pp 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/77/141677/1 diff --git a/manifests/role/swift.pp b/manifests/role/swift.pp index f97fb5d..78255ae 100644 --- a/manifests/role/swift.pp +++ b/manifests/role/swift.pp @@ -150,10 +150,12 @@ class { '::swift::proxy::monitoring': host => 'ms-fe.esams.wmnet', } + include role::swift::icehouse } class storage inherits role::swift::esams-prod { include ::swift::storage include ::swift::storage::monitoring + include role::swift::icehouse } } @@ -228,3 +230,20 @@ source => "puppet:///files/swift/swift-labs-ring", } } + +# temporary class to be applied to hosts to allow for rolling upgrades, will +# need a manual apt-get install swift +class role::swift::icehouse { + apt::repository { 'ubuntucloud-icehouse': + uri => 'http://ubuntu-cloud.archive.canonical.com/ubuntu', + dist => 'precise-updates/icehouse', + components => 'main', + keyfile => 'puppet:///files/misc/ubuntu-cloud.key', + } + + apt::pin { 'swift-icehouse.pref': + package => '*', + pin => 'release n=precise-updates/icehouse', + priority => 1005, + } +} -- To view, visit https://gerrit.wikimedia.org/r/141677 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8d86bef9d1191f09f28dba94d1886100ce75199f Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits