Retrieve hostname.

This commit is contained in:
Kazuhiro MUSASHI 2022-03-13 14:08:14 +09:00
parent 6fa35a923b
commit 67fab4951a
1 changed files with 3 additions and 0 deletions

View File

@ -14,9 +14,12 @@ else
end
ipaddr = run_command(cmd).stdout.chomp
hostname = run_command('uname -n').stdout.chomp
node.reverse_merge!({
'vault' => {
'manager' => false,
'ipaddr' => ipaddr,
'hostname' => hostname,
}
})