Skip to content

guruHub/puppet-gdash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-gdash

Puppet code to install gdash (A graphite frontend by Ripienaar: https://github.com/ripienaar/gdash)

Install uses local/system ruby and gdash gem, partial support for bundler is added.

Installing Gdash

class { "::gdash" :
  graphitehost => 'graphite.example.com',
  gdashroot    => '/var/www/gdash/first',
}

Arguments Explained

  • graphitehost = URL of graphite host
  • gdashroot = Where to install gdash

Optional args:

  • gdash_title = Gdash title
  • overwrite_filters = If set it will be used instead of default filters provided by gdash.

Using it with Apache

Using the above installed gdash with Apache

package{ 'libapache2-mod-passenger':
      ensure  => present,
      require => Class['::gdash'],
}

class { '::gdash::vhost' :  
  vhost            => $vhost,
  document_root    => $gdashroot,
  redirect_home_to => $redirect_home_to,
  require          => Package['libapache2-mod-passenger']
}						

Installing multiple Gdashes

After installing gdash and setup-ing the first gdash, to install extra ones:

gdash::setup { 'default':
    gdashroot    => 'graphite.example.com',
    graphitehost => '/var/www/gdash/second',
  }

TODO

  • Add suport for nginx vhost
  • Finish support for bundler

Known Issues

  • using gdash::vhost and passenger restricts to 1 gdash per domain/subdomain and cant use subfolders with the actual vhost.erb
  • Allthough modules figures like a fork from KrisBuytaert/puppet-gdash most code was written from scratch

Info

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 76.4%
  • Ruby 23.6%