{"id":1006,"date":"2014-10-30T14:19:04","date_gmt":"2014-10-30T20:19:04","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=1006"},"modified":"2014-10-30T14:19:28","modified_gmt":"2014-10-30T20:19:28","slug":"saltstack-rpm-archive","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/saltstack-rpm-archive\/","title":{"rendered":"SaltStack RPM archive"},"content":{"rendered":"<p><a href=\"http:\/\/www.saltstack.com\/\">SaltStack<\/a> is a great infrastructure management tool. I don&#8217;t always want to use the latest version, so it&#8217;s useful to know where to download older releases. The problem is that using <a href=\"https:\/\/fedoraproject.org\/wiki\/EPEL\">EPEL<\/a> to install it on CentOS\/RHEL systems only offers the latest version.<\/p>\n<p>Fortunately, it&#8217;s possible to download old RPM packages from the following URLs &#8212; thanks to &#8220;forrest&#8221; on the SaltStack IRC channel for digging up this information.<\/p>\n<p><a href=\"http:\/\/koji.fedoraproject.org\/koji\/packageinfo?packageID=13129\">http:\/\/koji.fedoraproject.org\/koji\/packageinfo?packageID=13129<br \/>\n<\/a><\/p>\n<p>\n<a href=\"https:\/\/kojipkgs.fedoraproject.org\/packages\/salt\/\">https:\/\/kojipkgs.fedoraproject.org\/packages\/salt\/<\/a><\/p>\n<p>&#8212;-<\/p>\n<p>Here&#8217;s how I&#8217;ve upgrade my salt infrastructure:<\/p>\n<p>&#8211; Make a backup of the salt-master<br \/>\n&#8211; Upgrade the salt master<br \/>\n&#8211; Install the &#8216;at&#8217; package on all minions (my minions are linux)<br \/>\n  &#8211; salt &#8216;*&#8217; pkg.install at<br \/>\n&#8211; Enable and start the at service<br \/>\n  &#8211; salt &#8216;*&#8217; service.enable atd<br \/>\n  &#8211; salt &#8216;*&#8217; service.start atd<br \/>\n&#8211; Run a script<br \/>\n  &#8211; Copy and paste the code below into your salt directory, typically \/srv\/salt\/upgrade_minion.sh<br \/>\n  &#8211; salt &#8216;*&#8217; cmd.script salt:\/\/upgrade_minion.sh timeout=15<\/p>\n<p>Here&#8217;s the script. Note: It would be safer (and faster) to download from a trusted internal HTTP server.<\/p>\n<p>\t#!\/bin\/bash<br \/>\n\tVERSION=$(salt-minion &#8211;version | awk &#8216;{print $2}&#8217;)<\/p>\n<p>\tcd \/root<br \/>\n\tif [ X$VERSION != &#8216;2014.1.7&#8217; ] ; then<br \/>\n\t\t\techo &#8220;upgrading `date`&#8221;<br \/>\n\t\t\tset -e<br \/>\n\t\t\tcurl https:\/\/kojipkgs.fedoraproject.org\/packages\/salt\/2014.1.7\/3.el6\/noarch\/salt-2014.1.7-3.el6.noarch.rpm -o salt-2014.1.7-3.el6.noarch.rpm<br \/>\n\t\t\tcurl https:\/\/kojipkgs.fedoraproject.org\/packages\/salt\/2014.1.7\/3.el6\/noarch\/salt-minion-2014.1.7-3.el6.noarch.rpm -o salt-minion-2014.1.7-3.el6.noarch.rpm<br \/>\n\t\t\tsha1sum salt-2014.1.7-3.el6.noarch.rpm<br \/>\n\t\t\tsha1sum salt-minion-2014.1.7-3.el6.noarch.rpm<br \/>\n\t\t\techo &#8216;\/etc\/init.d\/salt-minion stop ; \/bin\/rm -rf \/var\/cache\/salt ; truncate -s 0 \/var\/log\/salt\/minion ; rpm -Uhv \/root\/salt*2014.1.7-3*rpm ; \/etc\/init.d\/salt-minion start&#8217; | at now<br \/>\n\telse<br \/>\n\t\t\techo &#8220;Already upgraded to $VERSION&#8221;<br \/>\n\tfi<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SaltStack is a great infrastructure management tool. I don&#8217;t always want to use the latest version, so it&#8217;s useful to know where to download older releases. The problem is that using EPEL to install it on CentOS\/RHEL systems only offers the latest version. Fortunately, it&#8217;s possible to download old RPM packages from the following URLs &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/saltstack-rpm-archive\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SaltStack RPM archive&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17,30],"tags":[],"class_list":["post-1006","post","type-post","status-publish","format-standard","hentry","category-programming","category-tech","category-tools"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=1006"}],"version-history":[{"count":16,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1006\/revisions"}],"predecessor-version":[{"id":1023,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1006\/revisions\/1023"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=1006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=1006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=1006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}