Filippo Giunchedi has submitted this change and it was merged. 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(-) Approvals: Filippo Giunchedi: Verified; Looks good to me, approved diff --git a/manifests/role/swift.pp b/manifests/role/swift.pp index f97fb5d..3877f8a 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: merged Gerrit-Change-Id: I8d86bef9d1191f09f28dba94d1886100ce75199f Gerrit-PatchSet: 3 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Faidon Liambotis <fai...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits