Skip to content

Instantly share code, notes, and snippets.

@bwhaley
Last active December 18, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhaley/5721421 to your computer and use it in GitHub Desktop.
Save bwhaley/5721421 to your computer and use it in GitHub Desktop.
# pip does not install carbon and graphite_web to the standard location,
# so 'pip freeze' does not list it and puppet attempts to install on each
# run. with this hack, the 'pip freeze' command lists them as expected
file {
"/usr/lib/python2.6/site-packages/carbon-${graphite_ver}-py2.6.egg-info":
ensure => directory,
mode => 755,
require => Package['carbon'],
;
"/usr/lib/python2.6/site-packages/carbon-${graphite_ver}-py2.6.egg-info/PKG-INFO":
content => template('graphite/PKG-INFO.carbon.erb'),
require => [Package['carbon'],File["/usr/lib/python2.6/site-packages/carbon-${graphite_ver}-py2.6.egg-info"]]
;
"/usr/lib/python2.6/site-packages/graphite_web-${graphite_ver}-py2.6.egg-info":
ensure => directory,
mode => 755,
require => Package['graphite-web'],
;
"/usr/lib/python2.6/site-packages/graphite_web-${graphite_ver}-py2.6.egg-info/PKG-INFO":
content => template('graphite/PKG-INFO.graphite_web.erb'),
require => [Package['graphite-web'],File["/usr/lib/python2.6/site-packages/graphite_web-${graphite_ver}-py2.6.egg-info"]]
;
}
Metadata-Version: 1.0
Name: carbon
Version: <%=graphite_ver%>
Summary: Backend data caching and persistence daemon for Graphite
Home-page: https://launchpad.net/graphite
Author: Chris Davis
Author-email: chrismd@gmail.com
License: Apache Software License 2.0
Description: UNKNOWN
Platform: UNKNOWN
Metadata-Version: 1.0
Name: graphite-web
Version: <%=graphite_ver%>
Summary: Enterprise scalable realtime graphing
Home-page: https://launchpad.net/graphite
Author: Chris Davis
Author-email: chrismd@gmail.com
License: Apache Software License 2.0
Description: UNKNOWN
Platform: UNKNOWN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment