If the host already exists, get rid of its objects
Store our host in the database.
Turn a parser resource into a Rails resource.
Return the value of a fact.
returns a hash of fact_names.name => [ fact_values ] for this host. Note that ‘fact_values’ is actually a list of the value instances, not just actual values.
This is very similar to the merge_parameters method of Puppet::Rails::Resource.
Set our resources.
[Validate]