Forge Home

tessera

Manages the deployment of the Tessera application

7,896 downloads

7,896 latest version

3.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Nov 19th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'Ziaunys-tessera', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add Ziaunys-tessera
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install Ziaunys-tessera --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

Ziaunys/tessera — version 0.1.0 Nov 19th 2014

#tessera

###Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with the Tessera module
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

##Overview

Tessera is a Graphite front-end developed by Urban Airship. The project is found here: https://github.com/urbanairship/tessera

##Module Description

The Tessera module installs the Tessera app in a virtualenv, optionally initializes the sqlite db and assets, and sets up Gunicorn. In order to use this module you'll need to adhere to the requirements in the Modulefile. If you want to build Tessera's assets, you'll need to manage nodejs and grunt elsewhere in your Puppet code.

##Setup

###What the Tessera module affects

  • Clones the Tessera repo.
  • Creates a Python virtualenv in the Tessera repo.
  • Installs all the requirements in addition to the dev-requirements.
  • Configures Gunicorn in the virtualenv.
  • Optionally initializes the sqlite database.
  • Optionally installs js dependencies and builds assets.

###Beginning with the Tessera module

The following class declaration will deploy the Tessera, repo, initialize the sqlite db, and build the assets.

class { '::tessera':
    ensure             => 'present',
    build_assets       => true,
    init_db            => true,
    app_root           => '/opt/tessera',
    repo_url           => 'git://github.com/urbanairship/tessera.git',
    version            => 'v0.4.4',
    graphite_url       => 'https://graphite.example.net',
    gunicorn_sock_path => 'unix:/var/run/tessera/tessera.sock',
    tessera_user       => 'www-data',
    tessera_group      => 'www-data',
    require            => Package['git'],
}

##Usage

There is only one class in the Tessera module. It has the ability to set up all the components in the correct order.

###I don't want to build assets or use sqlite.

Modify the following parameters.

class { '::tessera':
    build_assets      => false,
    init_db           => false,
    sqlalchemy_db_uri => 'postgresql://username:password@tessera-db01-prod.example.net',
}

###Want prettier defaults?

Modify the following parameters.

class { '::tessera':
    default_refresh_interval    => 60,
    default_theme               => 'snow',
    interactive_charts_default  => 'True',
    interactive_charts_renderer => 'nvd3',
}

##Limitations

This module has been built on and tested against Puppet 3.

The module has been tested on:

  • Debian 6/7

##Development

Open PR's. Write tests. Go nuts!

###Contributors

The list of contributors can be found at: https://github.com/Ziaunys/puppet-tessera/graphs/contributors