# [.m] Facts: node_type
# checks if node is virtual and provides string fact
require 'puppet'
# {{{ project_name
Facter.add(:node_type) do
setcode do
if Facter.value(:is_virtual) then
node_type = 'virtual'
else
node_type = 'physical'
end
node_type
end
end
# }}}
# vim: et ts=8 sts=2 sw=2 fdm=marker