How to insert row into RDBMS table from puppet module?
I have a database table where I need to insert a row for each host has been assigned a particular puppet model. Lets call this puppet model
foo. The db table is called
foo_hosts has three columns:
date_added. I would like to some how have my
foo module execute SQL ...
insert into foo_hosts (hostname) values ( $hostname );
... if there is not already a row in the table for the host.