Serverspec

環境
Serverspec
RHEL8.6

構文

describe file('ディレクトリ名') do it { should be_directory } it { should be_owned ...

Ansible

環境
Serverspec
RHEL8.6

構文
describe package(‘パッケージ名’) do
it { should be_installed.by( ...

Ansible

環境
RHEL8.6

操作方法
1.Serverspecのインストールを行う

gem install serverspec

2.Serverspec初期セットアップを行う
serversp ...

Ansible

環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec

構文

describe service('サービス名') do it { should_n ...

Ansible

環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec

構文

describe service('サービス名') do it { should b ...

Ansible

環境
RHEL8.6
Serverspec

構文

describe cron do   it { should have_entry(xxxx).with_user('ユーザー名')end

エント ...

Ansible

環境
Serverspec
RHEL8.6

操作方法
1.Serverspecのインストールを行います
$ gem install serverspec

2.Serverspec ...

Ansible

環境
Severspec
RHEL8.6

操作方法
1.host_inventory
ホスト名を取得します。

2.host_inventory
デバイスパスで割り当てられ ...

Ansible

環境
Serverspec
RedHat 8.6

書式
describe locale(‘コマンド’) do
its(<対象>) { should <条件> <値> ...

Red Hat Enterprise Linux

環境
RHEL8.6

サービス詳細確認
systemctl cat <service_name>
systemctl help <service_name>

概要 ...

Ansible

環境
Serverspec
RedHat 8.6

書式
it { should <条件> }
its(<対象>) { should <条件> <値> }
「テスト条件」は対象とするリ ...

Ansible

環境
Serverspec
RedHat 8.6

書式
it { should <条件> }
its(<対象>) { should <条件> <値> }
「テスト条件」は対象とするリ ...

Ansible

環境
Serverspec
RedHat 8.6

操作例
ファイル名 httpd_spec.rb
1.spec/spec_helper.rbを実行する
require ‘ ...

Ansible

環境
Serverspec
RedHat 8.6

操作方法
1.Serverspecのインストール
Rubyおよびgemコマンドが利用できる環境であれば、以下のようにしてインストールする ...

サクラエディタ

環境
Windows10 22H2
サクラエディタ 2.4.2

操作方法1
1.サクラエディタを開きます。

2.「 Shift 」+「 F1 」キーを押下します。

3.コマン ...

Ruby

環境
Windows11 pro 64bit
ruby ruby 3.0.3p157

構文
配列名 =
配列名.grep(/指定文字列/)
grepを使って、配列から指定した文字列が ...

Ruby

環境
Windows11 pro 64bit
ruby ruby 3.0.3p157

構文
配列のハッシュ名 = }
map関数を使って配列のハッシュから指定したkeyの値のみを抽出します。 ...

Windows10

環境
Windows 10 Home 22H2
Tera Term 5.0

インストール方法
1.githubからteraterm-5.0.exe をダウンロードします。

2.