Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nibalizer/puppet-analytics-client
Example client for Puppet analytics
https://github.com/nibalizer/puppet-analytics-client
Last synced: about 1 month ago
JSON representation
Example client for Puppet analytics
- Host: GitHub
- URL: https://github.com/nibalizer/puppet-analytics-client
- Owner: nibalizer
- Created: 2014-09-06T22:57:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-07T22:06:28.000Z (over 10 years ago)
- Last Synced: 2024-10-26T20:11:43.068Z (about 2 months ago)
- Language: Shell
- Size: 137 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
puppet-analytics-client
=======================An place to store clients for posting module statistics to puppet-analytics.org. Probably should have made it plural. Live and learn.
puppet-analytics-client.sh
--------------------------Example use of puppet-analytics-client.sh, given that you are on the puppetmaster or have set the correct environment variables. Note that puppet-analytics-client requires jq, the shell jason tool. It is available on precise and trusty.
```shell
./puppet-analytics-client.sh
```raw curl
--------```shell
curl -XPOST 'puppet-analytics.org/api/1/module_send' -H "Content-Type: application/json" -d '{
"author": "nibalizer",
"name": "puppetboard",
"tags": "version=1.0,purpose=test"
}'
```post-commit
-----------For my personal systems, I simply have a git directory in /etc/puppet/manifests that I use to control site.pp. I put an executable post-commit file in .git/hooks with the content:
```shell
/path/to/puppet-analytics-client.sh
```And every time I git-commit, a fresh listing of my modules is sent up to puppet-analytics.