Method: Specinfra::Command::Solaris::Base::Inventory.get_fqdn
- Defined in:
- lib/specinfra/command/solaris/base/inventory.rb
permalink .get_fqdn ⇒ Object
[View source]
22 23 24 25 26 27 |
# File 'lib/specinfra/command/solaris/base/inventory.rb', line 22 def get_fqdn # Same as with get_domain assumes that either # /etc/hosts or DNS are configured correctly. %Q{getent hosts `uname -n` | } + %Q{nawk -v h=`unme -n` '{ if ($2 ~ h".") { print $2 } else { exit 1 } }'} end |