Deploy new logo.png and motd.js files
Recently-introduced change in ptgbot requires deployment of two new files (logo.png and motd.js). Also remove :: prefixes to make linter happy. Depends-On: I57d02c505ced355d53bc79e0d8240ea63737eae3 Change-Id: Ibd0dd9f5e8dabb863d260933d5a2ee29e84a2df0
This commit is contained in:
parent
933656c3c7
commit
1afaf5492c
@ -6,7 +6,7 @@ class ptgbot(
|
||||
$channel,
|
||||
$vhost_name,
|
||||
) {
|
||||
include ::pip
|
||||
include pip
|
||||
|
||||
user { 'ptgbot':
|
||||
ensure => present,
|
||||
@ -140,6 +140,18 @@ class ptgbot(
|
||||
subscribe => Vcsrepo['/opt/ptgbot'],
|
||||
}
|
||||
|
||||
file { '/var/lib/ptgbot/www/logo.png':
|
||||
ensure => present,
|
||||
group => 'ptgbot',
|
||||
mode => '0444',
|
||||
owner => 'root',
|
||||
replace => true,
|
||||
require => [File['/var/lib/ptgbot/www'],
|
||||
User['ptgbot']],
|
||||
source => '/opt/ptgbot/html/logo.png',
|
||||
subscribe => Vcsrepo['/opt/ptgbot'],
|
||||
}
|
||||
|
||||
file { '/var/lib/ptgbot/www/bootstrap-3.3.7.min.css':
|
||||
ensure => present,
|
||||
group => 'ptgbot',
|
||||
@ -188,6 +200,18 @@ class ptgbot(
|
||||
subscribe => Vcsrepo['/opt/ptgbot'],
|
||||
}
|
||||
|
||||
file { '/var/lib/ptgbot/www/motd.js':
|
||||
ensure => present,
|
||||
group => 'ptgbot',
|
||||
mode => '0444',
|
||||
owner => 'root',
|
||||
replace => true,
|
||||
require => [File['/var/lib/ptgbot/www'],
|
||||
User['ptgbot']],
|
||||
source => '/opt/ptgbot/html/motd.js',
|
||||
subscribe => Vcsrepo['/opt/ptgbot'],
|
||||
}
|
||||
|
||||
file { '/var/lib/ptgbot/www/jquery-1.9.1.min.js':
|
||||
ensure => present,
|
||||
group => 'ptgbot',
|
||||
@ -301,7 +325,7 @@ class ptgbot(
|
||||
require => User['ptgbot'],
|
||||
}
|
||||
|
||||
::httpd::vhost { $vhost_name:
|
||||
httpd::vhost { $vhost_name:
|
||||
port => 80,
|
||||
docroot => '/var/lib/ptgbot/www',
|
||||
priority => '50',
|
||||
|
Loading…
Reference in New Issue
Block a user