Giter Site home page Giter Site logo

puppet-thumbor's Introduction

puppet-thumbor

Puppet module to deploy Thumbor http://github.com/globocom/thumbor

this module depends on https://forge.puppetlabs.com/puppetlabs/apt to configue PPA repo https://launchpad.net/~thumbor/+archive/ppa

To test it with vagrant http://www.vagrantup.com/

mkdir modules
puppet module install -i ./modules puppetlabs/apt
git clone git://github.com/dhardy92/puppet-thumbor.git modules/thumbor
cd modules/thumbor/tests
vagrant up

Now go on your favorite browser and open http://127.0.0.1:8888/unsafe/200x200/http://farm9.staticflickr.com/8145/7474160854_1f963b155d_o.jpg (as an example)

How to use it in your manifest

Default configuration of your instance of Thumbor:

include thumbor

is equivalent to

class { 'thumbor':
  security_key => 'MY_SECURE_KEY',
  port => '8888',
  ip => '0.0.0.0',
  config => {},
  conffile => '/dev/null'
}

Configuration

  • security_key to use thumbor signed API ( cf. https://github.com/globocom/thumbor/wiki/Security )
  • port to set listening ports of thumbor instances (multiple ports can be precises separated by coma: 1 port = 1 thumbor instance)
  • ip to set the listening ip for all thumbor instances
  • config a hash to set config parameters ( Ex. : config => { 'MAX_WIDTH' => 800, 'MAX_HEIGHT' => 800, 'STORAGE'=> 'thumbor.storage.no_storage' } ). You can refer to Thumbor wiki for configuration options https://github.com/globocom/thumbor/wiki/Configuration
  • conffile a file used as template to prepend the default config (empty, only for documentation purpose)

puppet-thumbor's People

Contributors

dhardy92 avatar mpdude avatar

Stargazers

Luiz Boaretto avatar Bruno Rocha avatar Felipe Arruda Pontes avatar Avelino avatar Rafael Carício avatar Stéphane avatar LMD avatar

Watchers

Sven avatar Boris Charpentier avatar LMD avatar James Cloos avatar Christian NGUYEN VAN THAN avatar  avatar Cédrik Mallet avatar Noureddine Seddik avatar  avatar jsoudry avatar PERREYMOND Gilles avatar Eugen Cepoi avatar  avatar Mathias Mallet avatar NICOLLE Grégoire avatar Rodrigue Koffi avatar Xavier Maillot avatar Ibrahima Mbow avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.