Created
February 19, 2016 00:19
-
-
Save acidprime/7459b137ad9da16e0f68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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