Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created October 3, 2011 16:39
Show Gist options
  • Save bodepd/1259551 to your computer and use it in GitHub Desktop.
Save bodepd/1259551 to your computer and use it in GitHub Desktop.
facts = Puppet::Rails::InventoryFact.find_by_sql(["SELECT inventory_facts.value, inventory_nodes.name AS node_name
FROM inventory_facts INNER JOIN inventory_nodes
ON inventory_facts.node_id = inventory_nodes.id
WHERE inventory_facts.name = ?", name])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment