Ensure the custom js dir is created

This appears to be a still supported api for customizing things,
http://etherpad.org/doc/v1.7.0/#index_custom_static_files, but the repo
doesn't have a custom dir precreated for us. Ensure this directory is
created before we try to write to it.

Change-Id: I432d388cd43fc4e5dfc31115264365b15eb43215
This commit is contained in:
Clark Boylan 2018-10-15 17:04:32 -07:00
parent 51fc103d82
commit 2257feaa20
1 changed files with 9 additions and 1 deletions

View File

@ -31,13 +31,21 @@ class etherpad_lite::site (
before => Service['etherpad-lite'],
}
file { "${base}/etherpad-lite/src/static/custom":
ensure => directory,
owner => $etherpad_lite::ep_user,
group => $etherpad_lite::ep_user,
mode => '0755',
require => Class['etherpad_lite'],
}
file { "${base}/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,
mode => '0644',
require => Class['etherpad_lite'],
require => File["${base}/etherpad-lite/src/static/custom"],
before => Service['etherpad-lite'],
}