Skip to content

Instantly share code, notes, and snippets.

@jpadams
Created May 16, 2017 01:13
Show Gist options
  • Select an option

  • Save jpadams/c614bfe5fbbf549942b23b014541f857 to your computer and use it in GitHub Desktop.

Select an option

Save jpadams/c614bfe5fbbf549942b23b014541f857 to your computer and use it in GitHub Desktop.
[root@tse-puppetmaster2-prod ~]# puppet query 'inventory[certname] { facts.os.name = "windows" }' | ./jq '.[].certname' | wc -l
69
[root@tse-puppetmaster2-prod ~]# puppet query 'inventory[certname] { facts.os.name = "windows" and nodes { deactivated is null } }' | ./jq '.[].certname' | wc -l
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment