Added function to grab all machines from PuppetDB