RHEL9

環境
RHEL9.2
Rocky9

現象
Tera Term で Rocky9/RHEL9 にログインできない
エラーログ

info: userauth_pubkey: key typ ...

AWS

環境
Windows10 64bit
AWS CLI

操作方法
1.AWS CLIのインストールを行う
参考

2.Windows10 コマンドプロンプトを起動します。

Rails

環境
RHEL8.6

1.SSH-agentの状態を確認します
$ ssh-add -l
Could not open a connection to your authentication age ...

Serverspec

環境
Serverspec
RHEL8.6

構文

describe group('グループ名') do it { should exist }end

ユーザやグループの存在を確認するには、grou ...

Serverspec

環境
Serverspec
RHEL8.6

構文

describe process("プロセス名t") do it { should be_running }end

processを利用してプロセ ...

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 ‘ ...