Install local CSS and JS files

The ptgbot repository now provides local copies of the stylesheets
and script files it uses, so install them to the same location as
the static markup files.

Change-Id: I1fed94ce181927f12e56b384b19ac8c508515ada
This commit is contained in:
Jeremy Stanley 2017-09-12 16:52:31 +00:00
parent 8e35c817b0
commit a375ebe749
1 changed files with 36 additions and 0 deletions

View File

@ -114,6 +114,18 @@ class ptgbot(
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/bootstrap-3.3.7.min.css':
ensure => present,
group => 'ptgbot',
mode => '0444',
owner => 'root',
replace => true,
require => [File['/var/lib/ptgbot/www'],
User['ptgbot']],
source => '/opt/ptgbot/html/bootstrap-3.3.7.min.css',
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/ptg.js':
ensure => present,
group => 'ptgbot',
@ -126,6 +138,30 @@ class ptgbot(
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/jquery-1.9.1.min.js':
ensure => present,
group => 'ptgbot',
mode => '0444',
owner => 'root',
replace => true,
require => [File['/var/lib/ptgbot/www'],
User['ptgbot']],
source => '/opt/ptgbot/html/jquery-1.9.1.min.js',
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/var/lib/ptgbot/www/handlebars-4.0.6.js':
ensure => present,
group => 'ptgbot',
mode => '0444',
owner => 'root',
replace => true,
require => [File['/var/lib/ptgbot/www'],
User['ptgbot']],
source => '/opt/ptgbot/html/handlebars-4.0.6.js',
subscribe => Vcsrepo['/opt/ptgbot'],
}
file { '/etc/ptgbot/logging.config':
ensure => present,
group => 'ptgbot',