Example #1
0
module.exports = function(opts) {
  return dsl.module("Riemann Dash")
  .run("/build/ruby1.9.sh")
  .run("/build/ruby-switch --set ruby1.9.1")
  .run("/build/devheaders.sh")
  .run("gem install riemann-client riemann-tools riemann-dash")
  .config(function(c) {
    return c.add({
      from: __dirname + "/config/riemann-dash/config.rb",
      to: "/root/riemann-dash/config.rb",
      transform: dsl.mustache(opts)
    })
    .add({
      from: __dirname + "/runit/riemann-dash",
      to: "/etc/service/riemann-dash/run",
      mode: '744'
    })
  })
}
Example #2
0
module.exports = function(opts) {
  return dsl.module("Riemann")
  .wget({
      dir: "/root/riemann",
      from: "http://aphyr.com/riemann/" + tar })
  .tar({
      flags: "xvfj",
      file: "/root/riemann/" + tar})
    .config(function(c) {
      return c.add({
          from: __dirname + "/config/riemann/riemann.config",
          to: installpath + "/etc/riemann.config",
          transform: dsl.mustache(opts) })
        .add({
          from: __dirname + "/runit/riemann",
          to: "/etc/service/riemann/run",
          transform: dsl.mustache({ installpath: installpath }),
          mode: '777'
        })
      })
    }
Example #3
0
var dsl = require('teabox')

module.exports = dsl.module()
                  .install("build-essential")
                  .install("git")