Version information
released Dec 13th 2023
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, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.7.0 < 8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'puppetfinland-patchwork', '3.0.0'
Learn more about managing modules with a PuppetfileDocumentation
puppetfinland/patchwork — version 3.0.0 Dec 13th 2023
patchwork
A Puppet module for installing and configuring Patchwork. By default this module configures all components (patchwork, getmail, nginx, postgresql, uwsgi) required for Patchwork, but each of those can be managed outside of the module as well.
Prerequisites
If you use this module to configure all aspects of Patchwork you need all the modules defined in Puppetfile.
Module usage
Example usage from vagrant/patchwork.pp:
$admins = { 'admin' => 'admin@vagrant.example.lan' }
$allowed_hosts = '*'
$default_from_email = 'patchwork@vagrant.example.lan'
$db_password = 'vagrant'
$imap_password = 'vagrant'
$imap_port = 993
$imap_server = 'localhost'
$imap_username = 'vagrant'
$mailboxes = 'Inbox'
$revision = 'v3.0.5'
$secret_key = 'Kp|:Ych*AF^WIg4*<lpb}6T.P4etTI2E)qs.g4uqaSE0V*TPWs'
$server_name = 'patchwork.vagrant.example.lan'
$admin_allow_address_ipv4 = '192.168.59.0/24'
$rest_allow_address_ipv4 = '192.168.59.0/24'
$ssl = true
$ssl_cert = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
$ssl_key = '/etc/ssl/private/ssl-cert-snakeoil.key'
class { '::patchwork':
manage_datasource => true,
manage_nginx => true,
revision => $revision,
secret_key => $secret_key,
allowed_hosts => $allowed_hosts,
enable_rest_api => true,
default_from_email => $default_from_email,
db_password => $db_password,
admins => $admins,
server_name => $server_name,
imap_server => $imap_server,
imap_port => $imap_port,
imap_username => $imap_username,
imap_password => $imap_password,
mailboxes => $mailboxes,
admin_allow_address_ipv4 => $admin_allow_address_ipv4,
rest_allow_address_ipv4 => $rest_allow_address_ipv4,
ssl => $ssl,
ssl_cert => $ssl_cert,
ssl_key => $ssl_key,
}
For details see manifests/init.pp.
Dependencies
- puppetlabs/stdlib (>= 9.0.0 < 10.0.0)
- puppetlabs/vcsrepo (>= 5.0.0 < 6.0.0)
Copyright 2018 Samuli Seppänen, 2022 OpenVPN, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.