HogeBlekker / puppet-caddy

Puppet Caddy module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppet-caddy

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores License

Table of Contents

  1. Overview
  2. Module Description
  3. Usage
  4. Limitations
  5. TODO

Overview

Puppet Caddy module installs and configures caddy - The HTTP/2 web server with automatic HTTPS.

Module Description

Puppet Caddy module handles installing, configuring, and running Caddy server on Redhat based operating systems.

Usage

Install caddy with defaults:

include caddy

Install caddy with additiional features

class {'caddy':
  caddy_features = "git,mailout,ipfilter",
}

Add a Vhost with your configuration (source or content)

caddy::vhost {'example1':
  source => 'puppet:///modules/caddy/etc/caddy/config/example1.conf',
}

caddy::vhost {'example2':
  source => 'puppet:///modules/caddy/etc/caddy/config/example2.conf',
}

Parameters

caddy_features

Install Caddy with extra features

install_path

Caddy binary installation path - default /usr/local/bin

caddy_user

User to run caddy - default caddy

caddy_group

Group to run caddy - default caddy

caddy_log_dir

Caddy loggin directory - default /var/log/caddy

caddy_tmp_dir

Temp dir for caddy download

Limitations

Tested on Centos 6.8 and Centos 7.3.

TODO

  • Improve management of Caddyfile (templates).
  • Improve low port binding with systemd >= v229
  • Improve defining resources with hiera

License

MIT License

About

Puppet Caddy module

License:MIT License


Languages

Language:Ruby 51.2%Language:Puppet 32.7%Language:HTML 10.0%Language:Shell 4.5%Language:Dockerfile 1.5%