
Etherpad lite has changed their source tree slightly. This has required a few updates to the etherpad lite puppet module. The custom pad.js needs to go in a different directory and the upstart conf file needs a couple updated paths. In addition to the fixes a couple things have been cleaned up. Now define an etherpadlite.openstack.org node in site.pp and copy SSL certs from /root/secret-files. Change-Id: I312b419aa98212b6db68232c672bc4d75f23777f
42 lines
1.1 KiB
Puppet
42 lines
1.1 KiB
Puppet
class etherpad_lite::site (
|
|
$dbType = 'mysql'
|
|
) {
|
|
|
|
include etherpad_lite
|
|
|
|
if $dbType == 'mysql' {
|
|
service { 'etherpad-lite':
|
|
enable => true,
|
|
ensure => running,
|
|
subscribe => File["${etherpad_lite::base_install_dir}/etherpad-lite/settings.json"],
|
|
require => Class['etherpad_lite::mysql'],
|
|
}
|
|
}
|
|
else {
|
|
service { 'etherpad-lite':
|
|
enable => true,
|
|
ensure => running,
|
|
subscribe => File["${etherpad_lite::base_install_dir}/etherpad-lite/settings.json"],
|
|
}
|
|
}
|
|
|
|
file { "${etherpad_lite::base_install_dir}/etherpad-lite/settings.json":
|
|
ensure => 'present',
|
|
source => 'file:///root/secret-files/etherpad-lite_settings.json',
|
|
replace => true,
|
|
owner => $etherpad_lite::ep_user,
|
|
group => $etherpad_lite::ep_user,
|
|
mode => 0600,
|
|
require => Class['etherpad_lite']
|
|
}
|
|
|
|
file { "${etherpad_lite::base_install_dir}/etherpad-lite/src/static/custom/pad.js":
|
|
ensure => 'present',
|
|
source => 'puppet:///modules/etherpad_lite/pad.js',
|
|
owner => $etherpad_lite::ep_user,
|
|
group => $etherpad_lite::ep_user,
|
|
require => Class['etherpad_lite']
|
|
}
|
|
|
|
}
|