2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Serverspecオフラインインストール

Last updated at Posted at 2018-01-18

インターネットに接続できない環境にてServerSpecをインストールする。

ほぼほぼ以下のサイト参照となります。
※バージョンを上げたためか、必要パッケージは下記サイトより増えています。

Serverspec (2/3) :スタンドアロン環境へのServerspecインストール
https://qiita.com/pideo/items/1f2c653a980a5a4a858a

構成

今回実施したサーバおよびPPは以下の通り。
(2018/1/17時点での最新安定版を使用)

OS:RHEL 7.4.1708(3.10.0-693.el7.x86_64)
Ruby:2.5.0
RubyGems:2.7.4
Serverspec:2.41.3

資材のダウンロード

Serverspecのインストール

Serverspecのインストール要件であるRubyとRubyGemsをインストールする。

  1. Rubyのインストール
```bash
cd /tmp
tar zxvf ruby-2.5.0.tar.gz
cd ruby-2.5.0
./configure
make
make install
```
  1. RubyGemsのインストール
~~~bash
cd /tmp
tar zxvf rubygems-2.7.4.tgz 
#「tar: 未知の拡張ヘッダキーワード `SCHILY.~' を無視」
# のメッセージが出るが、無視

cd rubygems-2.7.4
ruby setup.rb 

~~~
  1. Serverspecのインストール
~~~bash
cd /tmp/serverspec
gem install serverspec --local

~~~

以上で、インストール完了。

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?