zotonic

Install and configure the Zotonic CMS

Driebit

driebit

8,918 downloads

8,918 latest version

3.6 quality score

Version information

  • 0.2.0 (latest)
released Jun 4th 2014

Start using this module

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,
}