Skip to content

Instantly share code, notes, and snippets.

@acidprime
Created February 19, 2016 00:19
Show Gist options
  • Save acidprime/7459b137ad9da16e0f68 to your computer and use it in GitHub Desktop.
Save acidprime/7459b137ad9da16e0f68 to your computer and use it in GitHub Desktop.
#!/opt/puppetlabs/puppet/bin/ruby
require 'puppet'
require 'puppet/face'
require 'yaml'
all_users = Puppet::Face[:resource, '0.0.1'].search("user")
puts all_users.to_yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment