Retrieve hostname.
This commit is contained in:
parent
6fa35a923b
commit
67fab4951a
|
@ -14,9 +14,12 @@ else
|
||||||
end
|
end
|
||||||
ipaddr = run_command(cmd).stdout.chomp
|
ipaddr = run_command(cmd).stdout.chomp
|
||||||
|
|
||||||
|
hostname = run_command('uname -n').stdout.chomp
|
||||||
|
|
||||||
node.reverse_merge!({
|
node.reverse_merge!({
|
||||||
'vault' => {
|
'vault' => {
|
||||||
'manager' => false,
|
'manager' => false,
|
||||||
'ipaddr' => ipaddr,
|
'ipaddr' => ipaddr,
|
||||||
|
'hostname' => hostname,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue