Forge Home

zotonic

Install and configure the Zotonic CMS

9,906 downloads

9,906 latest version

3.6 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

  • 0.2.0 (latest)
released Jun 4th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'driebit-zotonic', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add driebit-zotonic
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install driebit-zotonic --version 0.2.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
Tags: erlang, cms, zotonic

Documentation

driebit/zotonic — version 0.2.0 Jun 4th 2014

driebit/puppet-zotonic

Introduction

This Puppet module installs and configures Zotonic.

Usage

Install Zotonic

class { 'zotonic': }

Customise as follows:

class { 'zotonic':
  password            => '',                 # admin password
  listen_port         => '8000',             # Zotonic port
  dir                 => '/opt/zotonic',     # Installation directory
  version             => 'release-0.10.0p1', # Version to install
  user                => 'zotonic',          # User that owns Zotonic
  db_name             => 'zotonic',          # PostgreSQL database for Zotonic
  db_username         => 'zotonic',          # PostgreSQL username for Zotonic
  db_password         => '',                 # PostgreSQL password for Zotonic
  db_host             => 'localhost',        # PostgreSQL host
  db_port             => 5432,               # PostgreSQL port
  erlang_package      => 'erlang',           # Erlang package name
  imagemagick_package => ''                  # ImageMagick package name (a Zotonic dependency)
}

Add a site to Zotonic

You can add a site to your Zotonic setup with:

zotonic::site { 'mysite':
  dir => '/home/me/mysite'   # Directory that contains the site
}

This will:

  • set up PostgreSQL for the site
  • create a site config in /home/me/mysite/config.d/
  • create a symlink from the Zotonic sites dir to your site’s directory.

Customise as follows:

zotonic::site { 'mysite':
  dir            => '/home/me/mysite',
  admin_password => 'admin',  # Administrator password (defaults to admin)
  db_name        => undef,    # PostgreSQL database for the site (defaults to Zotonic database)
  db_user        => undef,    # PostgreSQL user for the site (defaults to Zotonic username)
  db_password    => undef,    # PostgreSQL password for the site (defaults to Zotonic password)
  db_schema      => 'public', # PostgreSQL schema for the site (defaults to public)
  hostname       => undef,    # Site hostname (defaults to sitename.fqdn)
  config_file    => 'puppet'  # Config file that will be placed in $dir/config.d,
}