Forge Home

thumbor

Install, configure and manage Thumbor installations

493 downloads

349 latest version

4.7 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

  • 2.3.0 (latest)
  • 2.2.0
released Jul 25th 2023
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'markt-thumbor', '2.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add markt-thumbor
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install markt-thumbor --version 2.3.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

markt/thumbor — version 2.3.0 Jul 25th 2023

puppet-thumbor

Build Status Puppet Forge Puppet Forge

Table of Contents

  1. Overview
  2. Requirements
  3. Usage
  4. Reference
  5. Development

Overview

Puppet module to deploy and manage Thumbor.

Requirements

  • A supported version of Puppet
  • A platform/distribution where Python 3.8+ is readily available
  • Only Thumbor 7+ is supported
  • EPEL repositories on RHEL-based distributions

Usage

Basic usage

Install Thumbor in your environment:

class { 'thumbor':
  ports        => [ '8000' ],
  security_key => 'AAAAABBBBCCCCC111112222233333',
}

Next run a simple test on the same machine to verify that Thumbor is working as expected:

curl -v http://localhost:8000/unsafe/200x200/https%3A%2F%2Fgithub.com%2Fthumbor%2Fthumbor%2Fraw%2Fmaster%2Fexample.jpg

It is also supported to run multiple instances and to customize various installation parameters:

class { 'thumbor':
  config       => {
    'AUTO_WEBP'               => true,
    'ENGINE_THREADPOOL_SIZE'  => 4,
    'HTTP_LOADER_MAX_CLIENTS' => 1024,
  },
  listen       => '127.0.0.1',
  ports        => [ '8000', '8001', '8002' ],
  security_key => 'AAAAABBBBCCCCC111112222233333',
  version      => '7.0.9',
}

Python venv

It is possible to run Thumbor in a Python venv and configure various aspects of the Python installation:

class { 'thumbor':
  manage_python  => true,
  ports          => [ '8000' ],
  python_config  => {
    version => 'python3',
    pip     => 'present',
    dev     => 'present',
    venv    => 'present',
  },
  security_key   => 'AAAAABBBBCCCCC111112222233333',
  update_enabled => true,
  venv_path      => '/opt/thumbor_venv',
}

This configuration will also automatically update the Python venv to the specified version (if necessary).

Plugins

Additional Thumbor plugins may also be installed via PIP:

class { 'thumbor':
  plugins => [ 'opencv-python', 'tc_aws', 'thumbor_spaces' ],
  ...
}

Updating Thumbor

When using the default configuration, the module will only install the currently available version of Thumbor. In order to update Thumbor, the $version parameter must be changed:

class { 'thumbor':
  version        => '7.1.0',
  update_enabled => true,
  ...
}

The value is directly passed through to the pip defined type. All values supported by this defined type may be used.

Reference

Classes and parameters are documented in REFERENCE.md.

Development

Contributing

Please use the GitHub issues functionality to report any bugs or requests for new features. Feel free to fork and submit pull requests for potential contributions.