Puppet Class: etherpad

Defined in:
modules/etherpad/manifests/init.pp

Overview

Parameters:

  • etherpad_db_user (Any)
  • etherpad_db_host (Any)
  • etherpad_db_name (Any)
  • etherpad_db_pass (Any)
  • etherpad_ip (Any) (defaults to: '0.0.0.0')
  • etherpad_port (Any) (defaults to: 9001)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'modules/etherpad/manifests/init.pp', line 3

class etherpad(
    $etherpad_db_user,
    $etherpad_db_host,
    $etherpad_db_name,
    $etherpad_db_pass,
    $etherpad_ip = '0.0.0.0',
    $etherpad_port = 9001,
){

    package { 'etherpad-lite':
        ensure => present,
    }

    service { 'etherpad-lite':
        ensure    => running,
        enable    => true,
        require   => Package['etherpad-lite'],
        subscribe => File['/etc/etherpad-lite/settings.json'],
    }

    file { '/etc/etherpad-lite/settings.json':
        require => Package['etherpad-lite'],
        content => template('etherpad/settings.json.erb'),
    }

    file { '/usr/share/etherpad-lite/src/static/robots.txt':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/etherpad/etherpad-robots.txt',
        require => Package['etherpad-lite'],
    }
}