Forge Home

thumbor

Install, configure and manage Thumbor installations

1,021 downloads

388 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.2.0 (latest)
  • 2.1.1
  • 2.1.0
  • 2.0.0
released Oct 10th 2022
This version is compatible with:
  • Puppet Enterprise 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 < 8.0.0
  • , ,
This module has been deprecated by its author since Jul 11th 2023.

The reason given was: new maintainer

The author has suggested markt-thumbor as its replacement.

Start using this module

Documentation

fraenki/thumbor — version 2.2.0 Oct 10th 2022

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.