LoginSignup
1
0

More than 5 years have passed since last update.

Chefクライアントを任意のバージョンを指定してインストールしたい

Posted at

マニュアルにも書かれているしあちこちで記事になっているのでいまさらですが自分の備忘録として書いておきます。

Install via URL — Chef Docs

-v オプションとやらがあるらしいです。これを使って任意のバージョンのものをインストールします。

-v (-version on Microsoft Windows)
The version of the package to be installed. A version always takes the form x.y.z, where x, y, and z are decimal numbers that are used to represent major (x), minor (y), and patch (z) versions.

  1. Chef Downloads でインストールしたいバージョンの Chefクライアントを探す。
    • Chef Client のリンクから最新バージョンのページに進むと、PREVIOUS VERSIONS (STABLE) と書かれた以前のバージョン一覧があるので確認できる。
  2. インストールしたいバージョンをパラメーターにセットして、前述の「URL経由でのインストール」を実行する。

こんな感じです。

インストールスクリプトの実行
$ curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.21.4

なお自分は CentOS の環境でしかやっていませんが、マニュアルによれば Windows でも同様のことができるようです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0