Skip to content

Instantly share code, notes, and snippets.

@richardc
Created January 31, 2013 23:15
Show Gist options
  • Save richardc/4687615 to your computer and use it in GitHub Desktop.
Save richardc/4687615 to your computer and use it in GitHub Desktop.
root@puppetdb:~# cat /etc/puppet/manifests/site.pp
@@nagios_host { "fishcakes":
check_command => undef,
}
root@puppetdb:~# puppet agent -vt
Info: Retrieving plugin
Info: Caching catalog for puppetdb
Info: Applying configuration version '1359673644'
Notice: Finished catalog run in 0.07 seconds
root@puppetdb:~# curl http://localhost:8080/v1/resources --data-urlencode 'query=["and", ["=", "type", "Nagios_host"]]' -G -H "Accept: application/json"
[ {
"parameters" : { },
"sourceline" : 3,
"sourcefile" : "/etc/puppet/manifests/site.pp",
"exported" : true,
"tags" : [ "fishcakes", "nagios_host", "class" ],
"title" : "fishcakes",
"type" : "Nagios_host",
"resource" : "1f6fa5c994861579817fedb4a8bfeb413094f1f5",
"certname" : "puppetdb"
} ]
root@puppetdb:~#
root@puppetdb:~# dpkg -l | grep puppet
ii facter 1.6.17-1puppetlabs1 all Ruby module for collecting simple facts about a host operating system
ii hiera 1.1.2-1puppetlabs1 all A simple pluggable Hierarchical Database.
ii puppet 3.0.2-1puppetlabs1 all Centralized configuration management - agent startup and compatibility scripts
ii puppet-common 3.0.2-1puppetlabs1 all Centralized configuration management
ii puppetdb 1.1.0-1puppetlabs1 all PuppetDB Centralized Storage.
ii puppetdb-terminus 1.1.0-1puppetlabs1 all Connect Puppet to PuppetDB by setting up a terminus for PuppetDB.
ii puppetlabs-release 1.0-5 all "Package to install Puppet Labs gpg key and apt repo"
ii puppetmaster-common 3.0.2-1puppetlabs1 all Puppet master common scripts
ii puppetmaster-passenger 3.0.2-1puppetlabs1 all Centralised configuration management - master setup to run under mod passenger
root@puppetdb:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment